pub struct ClientId(pub u64);Expand description
Monotonic per-process identifier for a connected peer.
Wraps a u64 counter allocated at Client construction time. Implements
Deref to u64 for ergonomic comparisons with the speaker-detection
API that uses bare u64 peer IDs.
Tuple Fields§
§0: u64Trait Implementations§
impl Copy for ClientId
impl Eq for ClientId
impl StructuralPartialEq for ClientId
Auto Trait Implementations§
impl Freeze for ClientId
impl RefUnwindSafe for ClientId
impl Send for ClientId
impl Sync for ClientId
impl Unpin for ClientId
impl UnsafeUnpin for ClientId
impl UnwindSafe for ClientId
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