[−][src]Struct actix::fut::FutureResult
A future representing a value that is immediately ready.
Created by the result
function.
Trait Implementations
impl<T, E, A> ActorFuture for FutureResult<T, E, A> where
A: Actor,
[src]
A: Actor,
type Output = Result<T, E>
The type of value that this future will resolved with if it is successful. Read more
type Actor = A
The actor within which this future runs
fn poll(
self: Pin<&mut Self>,
_: &mut Self::Actor,
_: &mut <Self::Actor as Actor>::Context,
_: &mut Context
) -> Poll<Self::Output>
[src]
self: Pin<&mut Self>,
_: &mut Self::Actor,
_: &mut <Self::Actor as Actor>::Context,
_: &mut Context
) -> Poll<Self::Output>
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,
Self: Sized,
[src]
F: FnOnce(Self::Output, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> U,
Self: Sized,
fn then<F, B>(self, f: F) -> Then<Self, B, F> where
F: FnOnce(Self::Output, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> B,
B: IntoActorFuture<Actor = Self::Actor>,
Self: Sized,
[src]
F: FnOnce(Self::Output, &mut Self::Actor, &mut <Self::Actor as Actor>::Context) -> B,
B: IntoActorFuture<Actor = Self::Actor>,
Self: Sized,
fn timeout(self, timeout: Duration) -> Timeout<Self> where
Self: Sized,
[src]
Self: Sized,
impl<T: Debug, E: Debug, A: Debug> Debug for FutureResult<T, E, A>
[src]
impl<T, E, A> From<Result<T, E>> for FutureResult<T, E, A>
[src]
impl<T, E, A> PinnedDrop for FutureResult<T, E, A>
[src]
impl<'pin, T, E, A> Unpin for FutureResult<T, E, A> where
__FutureResult<'pin, T, E, A>: Unpin,
[src]
__FutureResult<'pin, T, E, A>: Unpin,
Auto Trait Implementations
impl<T, E, A> RefUnwindSafe for FutureResult<T, E, A> where
A: RefUnwindSafe,
E: RefUnwindSafe,
T: RefUnwindSafe,
A: RefUnwindSafe,
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E, A> Send for FutureResult<T, E, A> where
A: Send,
E: Send,
T: Send,
A: Send,
E: Send,
T: Send,
impl<T, E, A> Sync for FutureResult<T, E, A> where
A: Sync,
E: Sync,
T: Sync,
A: Sync,
E: Sync,
T: Sync,
impl<T, E, A> UnwindSafe for FutureResult<T, E, A> where
A: UnwindSafe,
E: UnwindSafe,
T: UnwindSafe,
A: UnwindSafe,
E: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
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,
ⓘImportant traits for &'_ mut Ffn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'_ mut F
impl<T> From<T> for T
[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
fn into_future(Self) -> F
[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.
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.
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>,