Trait IdGenerator

Source
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.

Required Methods§

Implementors§