Skip to main content

IncidentIdSource

Trait IncidentIdSource 

Source
pub trait IncidentIdSource: Send + Sync {
    // Required method
    fn next_incident_id(&self) -> Result<IncidentId, IncidentIdSourceError>;
}
Expand description

Consumer-owned source for fresh opaque incident identifiers.

Production providers live at the server composition boundary. Core error handling receives only this synchronous port and must fail closed when it cannot obtain an identifier.

Required Methods§

Source

fn next_incident_id(&self) -> Result<IncidentId, IncidentIdSourceError>

Returns one fresh checked UUIDv7 incident identifier.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§