pub struct Metadata {}
Expand description
Metadata associated with a task.
Implementations§
Source§impl Metadata
impl Metadata
Sourcepub fn for_current_task() -> impl Future<Output = &'static Self>
pub fn for_current_task() -> impl Future<Output = &'static Self>
Get the metadata for the current task.
You can use this to read or modify the current task’s metadata.
This function is async
just to get access to the current async
context. It returns instantly, it does not block/yield.
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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