pub struct SmartChannelId { /* private fields */ }Expand description
SmartChannelId is a unique identifier for channels within a NotifierHub.
It consists of a monotonically increasing counter and the memory address of the NotifierHub
(converted to usize). This guarantees that the ID is unique across different contexts.
The address represents a specific field of a specific NotifierHub, ensuring its global uniqueness.
We store the address as a usize instead of a raw pointer to simplify the type and to keep this type simple without involving generics.
Trait Implementations§
Source§impl Clone for SmartChannelId
impl Clone for SmartChannelId
Source§fn clone(&self) -> SmartChannelId
fn clone(&self) -> SmartChannelId
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SmartChannelId
impl Debug for SmartChannelId
Source§impl PartialEq for SmartChannelId
impl PartialEq for SmartChannelId
impl Copy for SmartChannelId
impl Eq for SmartChannelId
impl StructuralPartialEq for SmartChannelId
Auto Trait Implementations§
impl Freeze for SmartChannelId
impl RefUnwindSafe for SmartChannelId
impl Send for SmartChannelId
impl Sync for SmartChannelId
impl Unpin for SmartChannelId
impl UnwindSafe for SmartChannelId
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