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

Trait used to provide unique subscription IDs.

Associated Types

A unique ID used to identify a subscription.

Required methods

Returns the next ID for the subscription.

Implementors