[][src]Trait jsonrpc_pubsub::manager::IdProvider

pub trait IdProvider {
    type Id: Default + Into<SubscriptionId>;
    pub fn next_id(&self) -> Self::Id;
}

Trait used to provide unique subscription IDs.

Associated Types

type Id: Default + Into<SubscriptionId>[src]

A unique ID used to identify a subscription.

Loading content...

Required methods

pub fn next_id(&self) -> Self::Id[src]

Returns the next ID for the subscription.

Loading content...

Implementors

impl IdProvider for NumericIdProvider[src]

type Id = u64

impl IdProvider for RandomStringIdProvider[src]

type Id = String

Loading content...