pub(crate) struct TaskIdGuard {
parent_task_id: Option<Id>,
}
Expand description
Set and clear the task id in the context when the future is executed or dropped, or when the output produced by the future is dropped.
Fields§
§parent_task_id: Option<Id>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskIdGuard
impl RefUnwindSafe for TaskIdGuard
impl Send for TaskIdGuard
impl Sync for TaskIdGuard
impl Unpin for TaskIdGuard
impl UnwindSafe for TaskIdGuard
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