pub struct CurrentTask;Expand description
Helper methods to be performed on the task that is currently executing.
Implementations§
Source§impl CurrentTask
impl CurrentTask
Sourcepub fn delay<D: DurationTicks>(delay: D)
pub fn delay<D: DurationTicks>(delay: D)
Delay the execution of the current task.
pub fn yield_now()
Sourcepub fn take_notification<D: DurationTicks>(clear: bool, wait_for: D) -> u32
pub fn take_notification<D: DurationTicks>(clear: bool, wait_for: D) -> u32
Take the notification and either clear the notification value or decrement it by one.
Auto Trait Implementations§
impl Freeze for CurrentTask
impl RefUnwindSafe for CurrentTask
impl Send for CurrentTask
impl Sync for CurrentTask
impl Unpin for CurrentTask
impl UnwindSafe for CurrentTask
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