Struct tracing_tools::TracingTask [−][src]
pub struct TracingTask<'a, R = ()> { /* fields omitted */ }
Implementations
impl<'a, R: Send + Sync> TracingTask<'a, R>[src]
impl<'a, R: Send + Sync> TracingTask<'a, R>[src]pub fn new<T: Future<Output = Result<R>> + Send + 'a>(
span: Span,
fut: T
) -> TracingTask<'a, R>[src]
span: Span,
fut: T
) -> TracingTask<'a, R>
pub fn new_short_lived<T: Future<Output = Result<R>> + Send + 'a>(
span: Span,
fut: T
) -> TracingTask<'a, R>[src]
span: Span,
fut: T
) -> TracingTask<'a, R>
impl<'a, R: Send + Sync + 'a> TracingTask<'a, R>[src]
impl<'a, R: Send + Sync + 'a> TracingTask<'a, R>[src]pub fn instrument(self) -> PinnedFut<'a, R>[src]
Auto Trait Implementations
impl<'a, R = ()> !RefUnwindSafe for TracingTask<'a, R>
impl<'a, R> Send for TracingTask<'a, R>
impl<'a, R = ()> !Sync for TracingTask<'a, R>
impl<'a, R> Unpin for TracingTask<'a, R>
impl<'a, R = ()> !UnwindSafe for TracingTask<'a, R>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> WithSubscriber for T[src]
impl<T> WithSubscriber for T[src]fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>, [src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>, [src]Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
fn with_current_subscriber(self) -> WithDispatch<Self>[src]
fn with_current_subscriber(self) -> WithDispatch<Self>[src]Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more