#[non_exhaustive]pub enum TorrentMode {
V1,
V2,
Hybrid,
}Expand description
Protocol representation identified for validated metainfo.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
V1
BEP 3 / v1 metainfo only.
V2
BEP 52 / v2 metainfo only.
Hybrid
Both compatible v1 and v2 representations.
Trait Implementations§
Source§impl Clone for TorrentMode
impl Clone for TorrentMode
Source§fn clone(&self) -> TorrentMode
fn clone(&self) -> TorrentMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TorrentMode
impl Debug for TorrentMode
Source§impl PartialEq for TorrentMode
impl PartialEq for TorrentMode
impl Copy for TorrentMode
impl Eq for TorrentMode
impl StructuralPartialEq for TorrentMode
Auto Trait Implementations§
impl Freeze for TorrentMode
impl RefUnwindSafe for TorrentMode
impl Send for TorrentMode
impl Sync for TorrentMode
impl Unpin for TorrentMode
impl UnwindSafe for TorrentMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more