pub struct TaskCall<'a> {
pub id: &'a TaskId,
pub parent: Option<&'a TaskId>,
pub depth: u8,
}Expand description
Where a task call sits: its identifier, its parent, and how deep its chain already is.
Fields§
§id: &'a TaskIdThe task’s identifier.
parent: Option<&'a TaskId>The task that asked for this one.
depth: u8Calls already made in this chain; the first call of a turn is at depth 1.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TaskCall<'a>
impl<'a> RefUnwindSafe for TaskCall<'a>
impl<'a> Send for TaskCall<'a>
impl<'a> Sync for TaskCall<'a>
impl<'a> Unpin for TaskCall<'a>
impl<'a> UnsafeUnpin for TaskCall<'a>
impl<'a> UnwindSafe for TaskCall<'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