pub enum WaitKind {
Timer(Duration),
Promise(PromiseId),
PromiseSet(PromiseSetWait),
Channel(ChannelWait),
External(Box<PreparedExternalOperation>),
ResourceSlot(ResourceGateId),
}Variants§
Timer(Duration)
Promise(PromiseId)
PromiseSet(PromiseSetWait)
Channel(ChannelWait)
External(Box<PreparedExternalOperation>)
ResourceSlot(ResourceGateId)
Park until this task owns gate’s exclusive slot. Resumes with
RuntimeResponse::Value(nil) once the slot is granted (immediately if
the gate is free, otherwise FIFO-behind any earlier acquirers).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WaitKind
impl !Send for WaitKind
impl !Sync for WaitKind
impl !UnwindSafe for WaitKind
impl Freeze for WaitKind
impl Unpin for WaitKind
impl UnsafeUnpin for WaitKind
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