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

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

Trait used to provide unique subscription IDs.

Associated Types

type Id: Default + Into<SubscriptionId>

A unique ID used to identify a subscription.

Loading content...

Required methods

fn next_id(&self) -> Self::Id

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...