pub struct InspectTaskInstrument { /* private fields */ }
Expand description
An implementation of TaskInstrument
that uses Inspect.
Implementations§
Source§impl InspectTaskInstrument
impl InspectTaskInstrument
Sourcepub fn new(config: InspectTaskConfiguration) -> Arc<Self>
pub fn new(config: InspectTaskConfiguration) -> Arc<Self>
Create a new InspectTaskInstrument
.
Trait Implementations§
Source§impl TaskInstrument for InspectTaskInstrument
impl TaskInstrument for InspectTaskInstrument
Source§fn task_created<'a>(
&self,
parent_scope: &ScopeHandle,
task: &mut AtomicFutureHandle<'a>,
)
fn task_created<'a>( &self, parent_scope: &ScopeHandle, task: &mut AtomicFutureHandle<'a>, )
Called when a new task is created.
Typically, implementers will want to call
task.add_hooks()
here
to add hooks to the task.Auto Trait Implementations§
impl !Freeze for InspectTaskInstrument
impl !RefUnwindSafe for InspectTaskInstrument
impl Send for InspectTaskInstrument
impl Sync for InspectTaskInstrument
impl Unpin for InspectTaskInstrument
impl !UnwindSafe for InspectTaskInstrument
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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