pub trait IdSource {
// Required method
fn next_session_id(&self) -> SessionId;
}Expand description
Mints session identities.
Declared by the engine, its only consumer, and consumed through
impl IdSource. One method, because a source that also answered “how long
is this session” would be two responsibilities in one adapter.
Required Methods§
Sourcefn next_session_id(&self) -> SessionId
fn next_session_id(&self) -> SessionId
A fresh identity.
Must not repeat an id this source has already returned, for as long as either session can still appear in the event log.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".