#[repr(u8)]pub enum ProtocolVersion {
V1 = 0,
V2 = 1,
}Expand description
BitTorrent version enumerator
Variants§
V1 = 0
The original BitTorrent version, using SHA-1 hashes
V2 = 1
Version 2 of the BitTorrent protocol, using SHA-256 hashes
Auto Trait Implementations§
impl Freeze for ProtocolVersion
impl RefUnwindSafe for ProtocolVersion
impl Send for ProtocolVersion
impl Sync for ProtocolVersion
impl Unpin for ProtocolVersion
impl UnwindSafe for ProtocolVersion
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