pub struct TaskSnapshot { /* private fields */ }Expand description
Immutable operator-facing task diagnostics.
Implementations§
Source§impl TaskSnapshot
impl TaskSnapshot
Sourcepub fn carrier(&self) -> CarrierId
pub fn carrier(&self) -> CarrierId
Placement owner; the stack is created and always resumed on this carrier.
Sourcepub fn inherited_deadline(&self) -> Option<Instant>
pub fn inherited_deadline(&self) -> Option<Instant>
Earliest inherited scope deadline.
Sourcepub fn parent(&self) -> Option<TaskId>
pub fn parent(&self) -> Option<TaskId>
Same-runtime spawning task, for a transferable or borrowed child.
Sourcepub fn cancellation_requested(&self) -> bool
pub fn cancellation_requested(&self) -> bool
Whether cancellation was requested by this task or an ancestor.
Sourcepub fn failure(&self) -> Option<TaskFailure>
pub fn failure(&self) -> Option<TaskFailure>
Reclamation failure, if the task was aborted.
Sourcepub fn status(&self) -> TaskStatus
pub fn status(&self) -> TaskStatus
Current state.
Sourcepub fn mounts(&self) -> u64
pub fn mounts(&self) -> u64
Published stack mounts, with at most 64 mounts of lag while runnable. The count is exact whenever the task parks or terminates.
Sourcepub fn yields(&self) -> u64
pub fn yields(&self) -> u64
Published cooperative yields, with at most 64 yields of lag while runnable. The count is exact whenever the task parks or terminates.
Sourcepub fn last_suspension(&self) -> Option<SuspensionReason>
pub fn last_suspension(&self) -> Option<SuspensionReason>
Most recent typed suspension boundary, if any.
Sourcepub fn last_wake(&self) -> Option<WakeReason>
pub fn last_wake(&self) -> Option<WakeReason>
Most recent selected wake reason, if any.
Sourcepub fn outcome_observed(&self) -> bool
pub fn outcome_observed(&self) -> bool
Whether a join observed the outcome.
Trait Implementations§
Source§impl Clone for TaskSnapshot
impl Clone for TaskSnapshot
Source§impl Debug for TaskSnapshot
impl Debug for TaskSnapshot
impl Eq for TaskSnapshot
Source§impl PartialEq for TaskSnapshot
impl PartialEq for TaskSnapshot
impl StructuralPartialEq for TaskSnapshot
Auto Trait Implementations§
impl Forget for TaskSnapshot
impl Freeze for TaskSnapshot
impl RefUnwindSafe for TaskSnapshot
impl Send for TaskSnapshot
impl Sync for TaskSnapshot
impl Unpin for TaskSnapshot
impl UnsafeUnpin for TaskSnapshot
impl UnwindSafe for TaskSnapshot
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