[−][src]Struct bastion_executor::sleepers::Sleepers
The place where worker threads go to sleep.
Similar to how thread parking works, if a notification comes up while no threads are sleeping, the next thread that attempts to go to sleep will pick up the notification immediately.
Implementations
impl Sleepers
[src]
pub fn new() -> Self
[src]
Creates a new Sleepers
.
pub fn wait(&self)
[src]
Puts the current thread to sleep.
pub fn notify_one(&self)
[src]
Notifies one thread.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Sleepers
impl Send for Sleepers
impl Sync for Sleepers
impl Unpin for Sleepers
impl UnwindSafe for Sleepers
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
[src]
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> State for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,