pub enum Interest {
Outcome(Correlation),
Slot,
Event(InterfaceNo),
Claim(InterfaceNo),
}Expand description
What a task waits for, as Wakeable::wake_on takes it.
Exhaustive: a runtime handles every key, because an unknown key has no safe default. Ignoring it leaves the waiter waiting, and waking it at once makes a busy loop. A new key is a 0.x minor (ADR-0021 decision 13).
Variants§
Outcome(Correlation)
The outcome of one call is known.
Slot
A slot for a new call is free.
Event(InterfaceNo)
An occurrence of one of the interface’s events is waiting.
Claim(InterfaceNo)
A claim on one of the interface’s members is waiting.
Trait Implementations§
impl Copy for Interest
impl Eq for Interest
impl StructuralPartialEq for Interest
Auto Trait Implementations§
impl Freeze for Interest
impl RefUnwindSafe for Interest
impl Send for Interest
impl Sync for Interest
impl Unpin for Interest
impl UnsafeUnpin for Interest
impl UnwindSafe for Interest
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