Skip to main content

IdSource

Trait IdSource 

Source
pub trait IdSource: Send + Sync {
    // Required method
    fn generate(&self) -> ThreadId;
}
Expand description

A source of unique ids.

Required Methods§

Source

fn generate(&self) -> ThreadId

Generate the next id.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§