Trait jsonrpsee_server::IdProvider

source ·
pub trait IdProvider: Send + Sync + Debug {
    // Required method
    fn next_id(&self) -> SubscriptionId<'static>;
}
Expand description

Trait to generate subscription IDs.

Required Methods§

source

fn next_id(&self) -> SubscriptionId<'static>

Returns the next ID for the subscription.

Implementations on Foreign Types§

source§

impl<T> IdProvider for Box<T>
where T: IdProvider + ?Sized,

source§

fn next_id(&self) -> SubscriptionId<'static>

Implementors§