jsonrpc_pubsub::manager

Trait IdProvider

Source
pub trait IdProvider {
    type Id: Default + Into<SubscriptionId>;

    // Required method
    fn next_id(&self) -> Self::Id;
}
Expand description

Trait used to provide unique subscription IDs.

Required Associated Types§

Source

type Id: Default + Into<SubscriptionId>

A unique ID used to identify a subscription.

Required Methods§

Source

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

Returns the next ID for the subscription.

Implementors§