Struct actix_interop::FutureInteropWrap
source · [−]pub struct FutureInteropWrap<A: Actor, F> { /* private fields */ }
Expand description
Future to ActorFuture adapter returned by interop_actor
.
Trait Implementations
sourceimpl<A: Actor, F: Future> ActorFuture<A> for FutureInteropWrap<A, F>
impl<A: Actor, F: Future> ActorFuture<A> for FutureInteropWrap<A, F>
impl<'pin, A: Actor, F> Unpin for FutureInteropWrap<A, F> where
__FutureInteropWrap<'pin, A, F>: Unpin,
Auto Trait Implementations
impl<A, F> RefUnwindSafe for FutureInteropWrap<A, F> where
F: RefUnwindSafe,
impl<A, F> Send for FutureInteropWrap<A, F> where
F: Send,
impl<A, F> Sync for FutureInteropWrap<A, F> where
F: Sync,
impl<A, F> UnwindSafe for FutureInteropWrap<A, F> where
F: UnwindSafe,
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<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> 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