pub struct PeerId(pub u16);Expand description
A value which refers to a specific peer. Peer 0 is always the host.
Tuple Fields§
§0: u16Implementations§
Trait Implementations§
impl Copy for PeerId
impl<'__de> Decode<'__de> for PeerIdwhere
'__de:,
impl Encode for PeerId
impl Eq for PeerId
impl StructuralPartialEq for PeerId
Auto Trait Implementations§
impl Freeze for PeerId
impl RefUnwindSafe for PeerId
impl Send for PeerId
impl Sync for PeerId
impl Unpin for PeerId
impl UnwindSafe for PeerId
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