IdGenerator

Trait IdGenerator 

Source
pub trait IdGenerator: Send + Sync {
    // Required method
    fn next_id(&self) -> MessageId;
}
Expand description

Trait for types that generate message IDs.

Required Methods§

Source

fn next_id(&self) -> MessageId

Generate the next message ID.

Implementors§