pub struct NumericIdProvider { /* private fields */ }
Expand description
Provides a thread-safe incrementing integer which can be used as a subscription ID.
Implementations§
Source§impl NumericIdProvider
impl NumericIdProvider
Sourcepub fn with_id(id: AtomicUsize) -> Self
pub fn with_id(id: AtomicUsize) -> Self
Create a new NumericIdProvider starting from the given ID.
Trait Implementations§
Source§impl Clone for NumericIdProvider
impl Clone for NumericIdProvider
Source§fn clone(&self) -> NumericIdProvider
fn clone(&self) -> NumericIdProvider
Returns a copy 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 NumericIdProvider
impl Debug for NumericIdProvider
Source§impl Default for NumericIdProvider
impl Default for NumericIdProvider
Auto Trait Implementations§
impl Freeze for NumericIdProvider
impl RefUnwindSafe for NumericIdProvider
impl Send for NumericIdProvider
impl Sync for NumericIdProvider
impl Unpin for NumericIdProvider
impl UnwindSafe for NumericIdProvider
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