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]

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 Debug for NumericIdProvider[src]

impl Default for NumericIdProvider[src]

impl IdProvider for NumericIdProvider[src]

type Id = u64

A unique ID used to identify a subscription.

Auto Trait Implementations

impl RefUnwindSafe for NumericIdProvider

impl Send for NumericIdProvider

impl Sync for NumericIdProvider

impl Unpin for NumericIdProvider

impl UnwindSafe for NumericIdProvider

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]