struct DebugTasks<'d, F>(&'d Data, F);
Expand description
Helper: Debug
s as a list of tasks, given the Data
for lookups and a list of the ids
Task
s in Data
are printed as Ti(ID)"SPEC"=FLAGS"
.
FLAGS
are:
-
T
: this task is for a Subthread (from subthread_spawn). -
P
: this task is being polled (itsTaskFutureInfo
is absent) -
f
: this is a normal task with a future and its future is present inData
-
m
: this is the main task fromblock_on
-
W
: the task is awake -
s<n>
: the task is asleep, and<n>
is the number of recorded sleeping locations
Tuple Fields§
§0: &'d Data
§1: F
Trait Implementations§
Auto Trait Implementations§
impl<'d, F> Freeze for DebugTasks<'d, F>where
F: Freeze,
impl<'d, F> !RefUnwindSafe for DebugTasks<'d, F>
impl<'d, F> !Send for DebugTasks<'d, F>
impl<'d, F> !Sync for DebugTasks<'d, F>
impl<'d, F> Unpin for DebugTasks<'d, F>where
F: Unpin,
impl<'d, F> !UnwindSafe for DebugTasks<'d, F>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more