pub struct PeerId(pub [u8; 16]);Expand description
A participant in the session: a device or an application.
Formats as colon-separated hex bytes, like the C examples’
print_hex_id. Persist onboarding ids with
crate::Library::uuid_to_string instead, which uses the
library’s own UUID text form.
Tuple Fields§
§0: [u8; 16]Implementations§
Trait Implementations§
impl Copy for PeerId
impl Eq for PeerId
Source§impl Ord for PeerId
impl Ord for PeerId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for PeerId
impl PartialOrd 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 UnsafeUnpin 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