Semaphorish

Trait Semaphorish 

Source
pub trait Semaphorish {
    // Required method
    fn default_new(permits: usize) -> Self;
}
Expand description

Extension trait for uniform construction of the re-exported Semaphore types.

Required Methods§

Source

fn default_new(permits: usize) -> Self

Construct given number of permits.

This chooses fair scheduling, if that is a supported option.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§