pub enum TaskNotification {
NoAction,
SetBits(u32),
Increment,
OverwriteValue(u32),
SetValue(u32),
}
Expand description
Notification to be sent to a task.
Variants§
NoAction
Send the event, unblock the task, the task’s notification value isn’t changed.
SetBits(u32)
Perform a logical or with the task’s notification value.
Increment
Increment the task’s notification value by one.
OverwriteValue(u32)
Set the task’s notification value to this value.
SetValue(u32)
Try to set the task’s notification value to this value. Succeeds only if the task has no pending notifications. Otherwise, the notification call will fail.
Trait Implementations§
Source§impl Clone for TaskNotification
impl Clone for TaskNotification
Source§fn clone(&self) -> TaskNotification
fn clone(&self) -> TaskNotification
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TaskNotification
impl Debug for TaskNotification
impl Copy for TaskNotification
Auto Trait Implementations§
impl Freeze for TaskNotification
impl RefUnwindSafe for TaskNotification
impl Send for TaskNotification
impl Sync for TaskNotification
impl Unpin for TaskNotification
impl UnwindSafe for TaskNotification
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)