Enum maitake::sync::wait_map::WakeOutcome
pub enum WakeOutcome<V> {
Woke,
NoMatch(V),
Closed(V),
}
Expand description
The result of an attempted WaitMap::wake()
operation.
Variants§
Woke
The task was successfully woken, and the data was provided.
NoMatch(V)
No task matching the given key was found in the queue.
Closed(V)
The queue was already closed when the wake was attempted, and the data was not provided to any task.
Trait Implementations§
Auto Trait Implementations§
impl<V> RefUnwindSafe for WakeOutcome<V>where
V: RefUnwindSafe,
impl<V> Send for WakeOutcome<V>where
V: Send,
impl<V> Sync for WakeOutcome<V>where
V: Sync,
impl<V> Unpin for WakeOutcome<V>where
V: Unpin,
impl<V> UnwindSafe for WakeOutcome<V>where
V: UnwindSafe,
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