pub enum Sleepable {
Timable(DurationWaker<Entry>),
Atomic(Arc<AtomicBool>, Entry),
Readiness(EventReadinessPtr, Entry),
}Expand description
Sleepable defines specific holders that help
indicate the readiness of a task via it’s entry.
Variants§
Timable(DurationWaker<Entry>)
Timable are tasks that can sleep via duration and will communicate their readiness using when a duration and time is expired/over.
Atomic(Arc<AtomicBool>, Entry)
Flag represents a task that connect a task with a AtomicBool
signal will communicate when a giving task is ready.
Readiness(EventReadinessPtr, Entry)
Readiness represents a task waiting on an arbitrary EventReadiness
signal. The executor calls is_ready(None) to check without blocking.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Sleepable
impl !Send for Sleepable
impl !Sync for Sleepable
impl !UnwindSafe for Sleepable
impl Freeze for Sleepable
impl Unpin for Sleepable
impl UnsafeUnpin for Sleepable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more