pub enum BencodeTypes {
String(String),
Integer(u64),
List(Vec<BencodeTypes>),
Dict(HashMap<String, BencodeTypes>),
InfoHash([u8; 20]),
Pieces(Vec<[u8; 20]>),
PeersCompact(Peers),
}Variants§
String(String)
Integer(u64)
List(Vec<BencodeTypes>)
Dict(HashMap<String, BencodeTypes>)
InfoHash([u8; 20])
Pieces(Vec<[u8; 20]>)
PeersCompact(Peers)
Trait Implementations§
Source§impl Debug for BencodeTypes
impl Debug for BencodeTypes
Source§impl PartialEq for BencodeTypes
impl PartialEq for BencodeTypes
Source§fn eq(&self, other: &BencodeTypes) -> bool
fn eq(&self, other: &BencodeTypes) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BencodeTypes
Auto Trait Implementations§
impl Freeze for BencodeTypes
impl RefUnwindSafe for BencodeTypes
impl Send for BencodeTypes
impl Sync for BencodeTypes
impl Unpin for BencodeTypes
impl UnsafeUnpin for BencodeTypes
impl UnwindSafe for BencodeTypes
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