pub trait SlotSemaphore {
// Required methods
fn new(count: usize) -> Self;
fn try_take(&self, n: usize) -> Result<bool, SlotSemaphoreClosedError>;
fn give(&self, n: usize);
fn close(&self);
}Required Methods§
fn new(count: usize) -> Self
fn try_take(&self, n: usize) -> Result<bool, SlotSemaphoreClosedError>
fn give(&self, n: usize)
fn close(&self)
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.