pub struct Current { /* private fields */ }Available on crate feature
unstable only.Expand description
Represents a reference to the current task. Returned by current.
This type is !Send, so it cannot be sent to other threads. This ensures
any TaskRefs created from this type do not outlive the referenced task.
Implementations§
Source§impl Current
impl Current
Sourcepub const fn as_raw_nonnull(&self) -> NonNullID
pub const fn as_raw_nonnull(&self) -> NonNullID
Get the raw object ID as abi::NonNullID.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Current
impl RefUnwindSafe for Current
impl !Send for Current
impl !Sync for Current
impl Unpin for Current
impl UnwindSafe for Current
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