[−][src]Struct tracing_actix::ActorInstrumented
An actor future that has been instrumented with a tracing
span.
Implementations
impl<T: ActorFuture + Unpin> ActorInstrumented<T>
[src]
pub fn span(&self) -> &Span
[src]
Borrows the Span
that this type is instrumented by.
pub fn span_mut(&mut self) -> &mut Span
[src]
Mutably borrows the Span
that this type is instrumented by.
pub fn actor_mut(&mut self) -> &mut T
[src]
Trait Implementations
impl<T: ActorFuture + Unpin> ActorFuture for ActorInstrumented<T>
[src]
type Output = <T as ActorFuture>::Output
The type of value that this future will resolved with if it is successful. Read more
type Actor = <T as ActorFuture>::Actor
The actor within which this future runs
pub fn poll(
self: Pin<&mut Self>,
srv: &mut Self::Actor,
ctx: &mut <Self::Actor as Actor>::Context,
task: &mut Context<'_>
) -> Poll<Self::Output>
[src]
self: Pin<&mut Self>,
srv: &mut Self::Actor,
ctx: &mut <Self::Actor as Actor>::Context,
task: &mut Context<'_>
) -> Poll<Self::Output>
pub fn map<F, U>(self, f: F) -> Map<Self, F> where
F: FnOnce(Self::Output, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> U,
[src]
F: FnOnce(Self::Output, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> U,
pub fn then<F, B>(self, f: F) -> Then<Self, B, F> where
B: IntoActorFuture<Actor = Self::Actor>,
F: FnOnce(Self::Output, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> B,
[src]
B: IntoActorFuture<Actor = Self::Actor>,
F: FnOnce(Self::Output, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> B,
pub fn timeout(self, timeout: Duration) -> Timeout<Self>
[src]
impl<T: Clone> Clone for ActorInstrumented<T> where
T: ActorFuture,
[src]
T: ActorFuture,
pub fn clone(&self) -> ActorInstrumented<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug> Debug for ActorInstrumented<T> where
T: ActorFuture,
[src]
T: ActorFuture,
Auto Trait Implementations
impl<T> !RefUnwindSafe for ActorInstrumented<T>
impl<T> Send for ActorInstrumented<T> where
T: Send,
T: Send,
impl<T> Sync for ActorInstrumented<T> where
T: Sync,
T: Sync,
impl<T> Unpin for ActorInstrumented<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for ActorInstrumented<T>
Blanket Implementations
impl<T> ActorInstrument for T where
T: Unpin + ActorFuture,
[src]
T: Unpin + ActorFuture,
pub fn actor_instrument(self, span: Span) -> ActorInstrumented<Self>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<F> IntoActorFuture for F where
F: ActorFuture,
[src]
F: ActorFuture,
type Future = F
The future that this type can be converted into.
type Output = <F as ActorFuture>::Output
The item that the future may resolve with.
type Actor = <F as ActorFuture>::Actor
The actor within which this future runs
pub fn into_future(self) -> F
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,