Struct tokio::runtime::task_hooks::TaskMeta
source · pub struct TaskMeta<'a> {
pub(crate) id: Id,
pub(crate) _phantom: PhantomData<&'a ()>,
}
Expand description
Task metadata supplied to user-provided hooks for task events.
Note: This is an unstable API. The public API of this type
may break in 1.x releases. See the documentation on unstable
features for details.
Fields§
§id: Id
The opaque ID of the task.
_phantom: PhantomData<&'a ()>
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TaskMeta<'a>
impl<'a> RefUnwindSafe for TaskMeta<'a>
impl<'a> Send for TaskMeta<'a>
impl<'a> Sync for TaskMeta<'a>
impl<'a> Unpin for TaskMeta<'a>
impl<'a> UnwindSafe for TaskMeta<'a>
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