Struct riker_patterns::ask::Ask
source · pub struct Ask<Msg: Message> { /* private fields */ }Implementations
Trait Implementations
Auto Trait Implementations
impl<Msg> !RefUnwindSafe for Ask<Msg>
impl<Msg> Send for Ask<Msg>
impl<Msg> Sync for Ask<Msg>
impl<Msg> Unpin for Ask<Msg>
impl<Msg> !UnwindSafe for Ask<Msg>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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> FutureExt for Twhere
T: Future + ?Sized,
impl<T> FutureExt for Twhere
T: Future + ?Sized,
sourcefn map<U, F>(self, f: F) -> Map<Self, F>where
F: FnOnce(Self::Item) -> U,
Self: Sized,
fn map<U, F>(self, f: F) -> Map<Self, F>where
F: FnOnce(Self::Item) -> U,
Self: Sized,
Map this future’s result to a different type, returning a new future of
the resulting type. Read more
sourcefn map_err<E, F>(self, f: F) -> MapErr<Self, F>where
F: FnOnce(Self::Error) -> E,
Self: Sized,
fn map_err<E, F>(self, f: F) -> MapErr<Self, F>where
F: FnOnce(Self::Error) -> E,
Self: Sized,
Map this future’s error to a different error, returning a new future. Read more
sourcefn err_into<E>(self) -> ErrInto<Self, E>where
Self: Sized,
Self::Error: Into<E>,
fn err_into<E>(self) -> ErrInto<Self, E>where
Self: Sized,
Self::Error: Into<E>,
Map this future’s error to a new error type using the
Into trait. Read moresourcefn then<B, F>(self, f: F) -> Then<Self, B, F>where
F: FnOnce(Result<Self::Item, Self::Error>) -> B,
B: IntoFuture,
Self: Sized,
fn then<B, F>(self, f: F) -> Then<Self, B, F>where
F: FnOnce(Result<Self::Item, Self::Error>) -> B,
B: IntoFuture,
Self: Sized,
Chain on a computation for when a future finished, passing the result of
the future to the provided closure
f. Read moresourcefn and_then<B, F>(self, f: F) -> AndThen<Self, B, F>where
F: FnOnce(Self::Item) -> B,
B: IntoFuture<Error = Self::Error>,
Self: Sized,
fn and_then<B, F>(self, f: F) -> AndThen<Self, B, F>where
F: FnOnce(Self::Item) -> B,
B: IntoFuture<Error = Self::Error>,
Self: Sized,
Execute another future after this one has resolved successfully. Read more
sourcefn or_else<B, F>(self, f: F) -> OrElse<Self, B, F>where
F: FnOnce(Self::Error) -> B,
B: IntoFuture<Item = Self::Item>,
Self: Sized,
fn or_else<B, F>(self, f: F) -> OrElse<Self, B, F>where
F: FnOnce(Self::Error) -> B,
B: IntoFuture<Item = Self::Item>,
Self: Sized,
Execute another future if this one resolves with an error. Read more
sourcefn select<B>(self, other: B) -> Select<Self, <B as IntoFuture>::Future>where
B: IntoFuture,
Self: Sized,
fn select<B>(self, other: B) -> Select<Self, <B as IntoFuture>::Future>where
B: IntoFuture,
Self: Sized,
Waits for either one of two differently-typed futures to complete. Read more
sourcefn join<B>(self, other: B) -> Join<Self, <B as IntoFuture>::Future>where
B: IntoFuture<Error = Self::Error>,
Self: Sized,
fn join<B>(self, other: B) -> Join<Self, <B as IntoFuture>::Future>where
B: IntoFuture<Error = Self::Error>,
Self: Sized,
Joins the result of two futures, waiting for them both to complete. Read more
sourcefn join3<B, C>(
self,
b: B,
c: C
) -> Join3<Self, <B as IntoFuture>::Future, <C as IntoFuture>::Future>where
B: IntoFuture<Error = Self::Error>,
C: IntoFuture<Error = Self::Error>,
Self: Sized,
fn join3<B, C>(
self,
b: B,
c: C
) -> Join3<Self, <B as IntoFuture>::Future, <C as IntoFuture>::Future>where
B: IntoFuture<Error = Self::Error>,
C: IntoFuture<Error = Self::Error>,
Self: Sized,
Same as
join, but with more futures.sourcefn join4<B, C, D>(
self,
b: B,
c: C,
d: D
) -> Join4<Self, <B as IntoFuture>::Future, <C as IntoFuture>::Future, <D as IntoFuture>::Future>where
B: IntoFuture<Error = Self::Error>,
C: IntoFuture<Error = Self::Error>,
D: IntoFuture<Error = Self::Error>,
Self: Sized,
fn join4<B, C, D>(
self,
b: B,
c: C,
d: D
) -> Join4<Self, <B as IntoFuture>::Future, <C as IntoFuture>::Future, <D as IntoFuture>::Future>where
B: IntoFuture<Error = Self::Error>,
C: IntoFuture<Error = Self::Error>,
D: IntoFuture<Error = Self::Error>,
Self: Sized,
Same as
join, but with more futures.sourcefn join5<B, C, D, E>(
self,
b: B,
c: C,
d: D,
e: E
) -> Join5<Self, <B as IntoFuture>::Future, <C as IntoFuture>::Future, <D as IntoFuture>::Future, <E as IntoFuture>::Future>where
B: IntoFuture<Error = Self::Error>,
C: IntoFuture<Error = Self::Error>,
D: IntoFuture<Error = Self::Error>,
E: IntoFuture<Error = Self::Error>,
Self: Sized,
fn join5<B, C, D, E>(
self,
b: B,
c: C,
d: D,
e: E
) -> Join5<Self, <B as IntoFuture>::Future, <C as IntoFuture>::Future, <D as IntoFuture>::Future, <E as IntoFuture>::Future>where
B: IntoFuture<Error = Self::Error>,
C: IntoFuture<Error = Self::Error>,
D: IntoFuture<Error = Self::Error>,
E: IntoFuture<Error = Self::Error>,
Self: Sized,
Same as
join, but with more futures.sourcefn left<B>(self) -> Either<Self, B>where
B: Future<Item = Self::Item, Error = Self::Error>,
Self: Sized,
fn left<B>(self) -> Either<Self, B>where
B: Future<Item = Self::Item, Error = Self::Error>,
Self: Sized,
👎Deprecated: use
left_future insteadsourcefn left_future<B>(self) -> Either<Self, B>where
B: Future<Item = Self::Item, Error = Self::Error>,
Self: Sized,
fn left_future<B>(self) -> Either<Self, B>where
B: Future<Item = Self::Item, Error = Self::Error>,
Self: Sized,
sourcefn right<A>(self) -> Either<A, Self>where
A: Future<Item = Self::Item, Error = Self::Error>,
Self: Sized,
fn right<A>(self) -> Either<A, Self>where
A: Future<Item = Self::Item, Error = Self::Error>,
Self: Sized,
👎Deprecated: use
right_future insteadsourcefn right_future<A>(self) -> Either<A, Self>where
A: Future<Item = Self::Item, Error = Self::Error>,
Self: Sized,
fn right_future<A>(self) -> Either<A, Self>where
A: Future<Item = Self::Item, Error = Self::Error>,
Self: Sized,
sourcefn into_stream(self) -> IntoStream<Self>where
Self: Sized,
fn into_stream(self) -> IntoStream<Self>where
Self: Sized,
Convert this future into a single element stream. Read more
sourcefn flatten(self) -> Flatten<Self>where
Self::Item: IntoFuture<Error = Self::Error>,
Self: Sized,
fn flatten(self) -> Flatten<Self>where
Self::Item: IntoFuture<Error = Self::Error>,
Self: Sized,
Flatten the execution of this future when the successful result of this
future is itself another future. Read more
sourcefn flatten_sink(self) -> FlattenSink<Self>where
Self::Item: Sink<SinkError = Self::Error>,
Self: Sized,
fn flatten_sink(self) -> FlattenSink<Self>where
Self::Item: Sink<SinkError = Self::Error>,
Self: Sized,
Flatten the execution of this future when the successful result of this
future is a sink. Read more
sourcefn flatten_stream(self) -> FlattenStream<Self>where
Self::Item: Stream<Error = Self::Error>,
Self: Sized,
fn flatten_stream(self) -> FlattenStream<Self>where
Self::Item: Stream<Error = Self::Error>,
Self: Sized,
Flatten the execution of this future when the successful result of this
future is a stream. Read more
sourcefn fuse(self) -> Fuse<Self>where
Self: Sized,
fn fuse(self) -> Fuse<Self>where
Self: Sized,
Fuse a future such that
poll will never again be called once it has
completed. Read moresourcefn inspect<F>(self, f: F) -> Inspect<Self, F>where
F: FnOnce(&Self::Item),
Self: Sized,
fn inspect<F>(self, f: F) -> Inspect<Self, F>where
F: FnOnce(&Self::Item),
Self: Sized,
Do something with the item of a future, passing it on. Read more
sourcefn inspect_err<F>(self, f: F) -> InspectErr<Self, F>where
F: FnOnce(&Self::Error),
Self: Sized,
fn inspect_err<F>(self, f: F) -> InspectErr<Self, F>where
F: FnOnce(&Self::Error),
Self: Sized,
Do something with the error of a future, passing it on. Read more
sourcefn catch_unwind(self) -> CatchUnwind<Self>where
Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self>where
Self: Sized + UnwindSafe,
Catches unwinding panics while polling the future. Read more
Create a cloneable handle to this future where all handles will resolve
to the same result. Read more
sourcefn recover<E, F>(self, f: F) -> Recover<Self, E, F>where
Self: Sized,
F: FnOnce(Self::Error) -> Self::Item,
fn recover<E, F>(self, f: F) -> Recover<Self, E, F>where
Self: Sized,
F: FnOnce(Self::Error) -> Self::Item,
Handle errors generated by this future by converting them into
Self::Item. Read moresourcefn with_executor<E>(self, executor: E) -> WithExecutor<Self, E>where
Self: Sized,
E: Executor,
fn with_executor<E>(self, executor: E) -> WithExecutor<Self, E>where
Self: Sized,
E: Executor,
Assigns the provided
Executor to be used when spawning tasks
from within the future. Read more