pub trait IdGenerator: Send + Sync {
// Required method
fn generate(&self) -> SessionId;
}
Expand description
Trait for generating session identifiers
Implementors must be Send and Sync to support concurrent access.
pub trait IdGenerator: Send + Sync {
// Required method
fn generate(&self) -> SessionId;
}
Trait for generating session identifiers
Implementors must be Send and Sync to support concurrent access.