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.
Sourcepub fn get_stack_high_water_mark() -> u32
pub fn get_stack_high_water_mark() -> u32
Get the minimum amount of stack that was ever left on the current task.
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