Struct tracing_actix::ActorInstrumented
source · [−]pub struct ActorInstrumented<T> { /* private fields */ }
Expand description
An actor future that has been instrumented with a tracing
span.
Implementations
sourceimpl<T> ActorInstrumented<T>
impl<T> ActorInstrumented<T>
sourcepub fn span_mut(&mut self) -> &mut Span
pub fn span_mut(&mut self) -> &mut Span
Mutably borrows the Span
that this type is instrumented by.
sourcepub fn inner_pin_mut(self: Pin<&mut Self>) -> Pin<&mut T>
pub fn inner_pin_mut(self: Pin<&mut Self>) -> Pin<&mut T>
Get a pinned mutable reference to the wrapped type.
sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consumes the Instrumented
, returning the wrapped type.
Note that this drops the span.
Trait Implementations
sourceimpl<T: ActorFuture<U>, U: Actor> ActorFuture<U> for ActorInstrumented<T>
impl<T: ActorFuture<U>, U: Actor> ActorFuture<U> for ActorInstrumented<T>
sourceimpl<T: Clone> Clone for ActorInstrumented<T>
impl<T: Clone> Clone for ActorInstrumented<T>
sourcefn clone(&self) -> ActorInstrumented<T>
fn clone(&self) -> ActorInstrumented<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug> Debug for ActorInstrumented<T>
impl<T: Debug> Debug for ActorInstrumented<T>
impl<'__pin, T> Unpin for ActorInstrumented<T> where
__Origin<'__pin, T>: Unpin,
Auto Trait Implementations
impl<T> !RefUnwindSafe for ActorInstrumented<T>
impl<T> Send for ActorInstrumented<T> where
T: Send,
impl<T> Sync for ActorInstrumented<T> where
T: Sync,
impl<T> !UnwindSafe for ActorInstrumented<T>
Blanket Implementations
sourceimpl<F, A> ActorFutureExt<A> for F where
F: ActorFuture<A>,
A: Actor,
impl<F, A> ActorFutureExt<A> for F where
F: ActorFuture<A>,
A: Actor,
sourcefn map<F, U>(self, f: F) -> Map<Self, F> where
F: FnOnce(Self::Output, &mut A, &mut <A as Actor>::Context) -> U,
fn map<F, U>(self, f: F) -> Map<Self, F> where
F: FnOnce(Self::Output, &mut A, &mut <A as Actor>::Context) -> U,
Map this future’s result to a different type, returning a new future of the resulting type. Read more
sourcefn then<F, Fut>(self, f: F) -> Then<Self, Fut, F> where
F: FnOnce(Self::Output, &mut A, &mut <A as Actor>::Context) -> Fut,
Fut: ActorFuture<A>,
fn then<F, Fut>(self, f: F) -> Then<Self, Fut, F> where
F: FnOnce(Self::Output, &mut A, &mut <A as Actor>::Context) -> Fut,
Fut: ActorFuture<A>,
Chain on a computation for when a future finished, passing the result of
the future to the provided closure f
. Read more
sourcefn boxed_local(
self
) -> Pin<Box<dyn ActorFuture<A, Output = Self::Output> + 'static, Global>> where
Self: 'static,
fn boxed_local(
self
) -> Pin<Box<dyn ActorFuture<A, Output = Self::Output> + 'static, Global>> where
Self: 'static,
Wrap the future in a Box, pinning it. Read more
sourceimpl<T> ActorInstrument for T
impl<T> ActorInstrument for T
sourcefn actor_instrument(self, span: Span) -> ActorInstrumented<Self>
fn actor_instrument(self, span: Span) -> ActorInstrumented<Self>
Instruments this type with the provided Span
, returning an
ActorInstrumented
wrapper. Read more
fn in_current_actor_span(self) -> ActorInstrumented<Self>
sourceimpl<A, F, T, E> ActorTryFuture<A> for F where
A: Actor,
F: ActorFuture<A, Output = Result<T, E>> + ?Sized,
impl<A, F, T, E> ActorTryFuture<A> for F where
A: Actor,
F: ActorFuture<A, Output = Result<T, E>> + ?Sized,
sourceimpl<A, F> ActorTryFutureExt<A> for F where
A: Actor,
F: ActorTryFuture<A> + ?Sized,
impl<A, F> ActorTryFutureExt<A> for F where
A: Actor,
F: ActorTryFuture<A> + ?Sized,
sourcefn and_then<Fut, F>(self, f: F) -> AndThen<Self, Fut, F> where
F: FnOnce(Self::Ok, &mut A, &mut <A as Actor>::Context) -> Fut,
Fut: ActorTryFuture<A, Error = Self::Error>,
fn and_then<Fut, F>(self, f: F) -> AndThen<Self, Fut, F> where
F: FnOnce(Self::Ok, &mut A, &mut <A as Actor>::Context) -> Fut,
Fut: ActorTryFuture<A, Error = Self::Error>,
Executes another actor future after this one resolves successfully. The success value is passed to a closure to create this subsequent actor future. Read more
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more