Struct axtask::CurrentTask
source · pub struct CurrentTask(/* private fields */);
Available on crate feature
multitask
only.Expand description
A wrapper of AxTaskRef
as the current task.
Implementations§
source§impl CurrentTask
impl CurrentTask
sourcepub fn as_task_ref(&self) -> &AxTaskRef
pub fn as_task_ref(&self) -> &AxTaskRef
Converts CurrentTask
to AxTaskRef
.
Methods from Deref<Target = TaskInner>§
Trait Implementations§
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