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§
Sourcetype Id: Default + Into<SubscriptionId>
type Id: Default + Into<SubscriptionId>
A unique ID used to identify a subscription.