Struct jsonrpc_pubsub::manager::NumericIdProvider [−][src]
pub struct NumericIdProvider { /* fields omitted */ }
Provides a thread-safe incrementing integer which can be used as a subscription ID.
Implementations
impl NumericIdProvider
[src]
impl NumericIdProvider
[src]pub fn new() -> Self
[src]
Create a new NumericIdProvider.
pub fn with_id(id: AtomicUsize) -> Self
[src]
Create a new NumericIdProvider starting from the given ID.
Trait Implementations
impl Clone for NumericIdProvider
[src]
impl Clone for NumericIdProvider
[src]fn clone(&self) -> NumericIdProvider
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for NumericIdProvider
[src]
impl Default for NumericIdProvider
[src]impl IdProvider for NumericIdProvider
[src]
impl IdProvider for NumericIdProvider
[src]