pub trait IdProvider:
Send
+ Sync
+ Debug {
// Required method
fn next_id(&self) -> SubscriptionId<'static>;
}
Expand description
Trait to generate subscription IDs.
Required Methods§
sourcefn next_id(&self) -> SubscriptionId<'static>
fn next_id(&self) -> SubscriptionId<'static>
Returns the next ID for the subscription.
Implementations on Foreign Types§
source§impl<T: IdProvider + ?Sized> IdProvider for Box<T>
impl<T: IdProvider + ?Sized> IdProvider for Box<T>
fn next_id(&self) -> SubscriptionId<'static>
Implementors§
impl IdProvider for NoopIdProvider
Available on crate feature
server
only.impl IdProvider for RandomIntegerIdProvider
Available on crate feature
server
only.impl IdProvider for RandomStringIdProvider
Available on crate feature
server
only.