Struct futures_util::try_future::MapErr [−][src]
Future for the map_err
method.
Trait Implementations
impl<Fut: Debug, F: Debug> Debug for MapErr<Fut, F>
[src]
impl<Fut, F, E> FusedFuture for MapErr<Fut, F> where
Fut: TryFuture,
F: FnOnce(Fut::Error) -> E,
[src]
Fut: TryFuture,
F: FnOnce(Fut::Error) -> E,
fn is_terminated(&self) -> bool
[src]
impl<Fut, F, E> Future for MapErr<Fut, F> where
Fut: TryFuture,
F: FnOnce(Fut::Error) -> E,
[src]
Fut: TryFuture,
F: FnOnce(Fut::Error) -> E,
type Output = Result<Fut::Ok, E>
The type of value produced on completion.
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
[src]
impl<Fut: Unpin, F> Unpin for MapErr<Fut, F>
[src]
Auto Trait Implementations
impl<Fut, F> RefUnwindSafe for MapErr<Fut, F> where
F: RefUnwindSafe,
Fut: RefUnwindSafe,
F: RefUnwindSafe,
Fut: RefUnwindSafe,
impl<Fut, F> Send for MapErr<Fut, F> where
F: Send,
Fut: Send,
F: Send,
Fut: Send,
impl<Fut, F> Sync for MapErr<Fut, F> where
F: Sync,
Fut: Sync,
F: Sync,
Fut: Sync,
impl<Fut, F> UnwindSafe for MapErr<Fut, F> where
F: UnwindSafe,
Fut: UnwindSafe,
F: UnwindSafe,
Fut: 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,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T> FutureExt for T where
T: Future + ?Sized,
[src]
T: Future + ?Sized,
fn map<U, F>(self, f: F) -> Map<Self, F>ⓘ where
F: FnOnce(Self::Output) -> U,
Self: Sized,
[src]
F: FnOnce(Self::Output) -> U,
Self: Sized,
fn then<Fut, F>(self, f: F) -> Then<Self, Fut, F>ⓘ where
F: FnOnce(Self::Output) -> Fut,
Fut: Future,
Self: Sized,
[src]
F: FnOnce(Self::Output) -> Fut,
Fut: Future,
Self: Sized,
fn left_future<B>(self) -> Either<Self, B>ⓘ where
B: Future<Output = Self::Output>,
Self: Sized,
[src]
B: Future<Output = Self::Output>,
Self: Sized,
fn right_future<A>(self) -> Either<A, Self>ⓘ where
A: Future<Output = Self::Output>,
Self: Sized,
[src]
A: Future<Output = Self::Output>,
Self: Sized,
fn into_stream(self) -> IntoStream<Self> where
Self: Sized,
[src]
Self: Sized,
fn flatten(self) -> Flatten<Self>ⓘ where
Self::Output: Future,
Self: Sized,
[src]
Self::Output: Future,
Self: Sized,
fn flatten_stream(self) -> FlattenStream<Self> where
Self::Output: Stream,
Self: Sized,
[src]
Self::Output: Stream,
Self: Sized,
fn fuse(self) -> Fuse<Self>ⓘ where
Self: Sized,
[src]
Self: Sized,
fn inspect<F>(self, f: F) -> Inspect<Self, F>ⓘ where
F: FnOnce(&Self::Output),
Self: Sized,
[src]
F: FnOnce(&Self::Output),
Self: Sized,
fn catch_unwind(self) -> CatchUnwind<Self>ⓘNotable traits for CatchUnwind<Fut>
impl<Fut> Future for CatchUnwind<Fut> where
Fut: Future + UnwindSafe, type Output = Result<Fut::Output, Box<dyn Any + Send>>;
where
Self: Sized + UnwindSafe,
[src]
Notable traits for CatchUnwind<Fut>
impl<Fut> Future for CatchUnwind<Fut> where
Fut: Future + UnwindSafe, type Output = Result<Fut::Output, Box<dyn Any + Send>>;
Self: Sized + UnwindSafe,
fn shared(self) -> Shared<Self>ⓘ where
Self: Sized,
Self::Output: Clone,
[src]
Self: Sized,
Self::Output: Clone,
fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>) where
Self: Sized,
[src]
Self: Sized,
fn boxed<'a>(self) -> BoxFuture<'a, Self::Output> where
Self: Sized + Send + 'a,
[src]
Self: Sized + Send + 'a,
fn boxed_local<'a>(self) -> LocalBoxFuture<'a, Self::Output> where
Self: Sized + 'a,
[src]
Self: Sized + 'a,
fn unit_error(self) -> UnitError<Self>ⓘ where
Self: Sized,
[src]
Self: Sized,
fn never_error(self) -> NeverError<Self>ⓘNotable traits for NeverError<Fut>
impl<Fut, T> Future for NeverError<Fut> where
Fut: Future<Output = T>, type Output = Result<T, Never>;
where
Self: Sized,
[src]
Notable traits for NeverError<Fut>
impl<Fut, T> Future for NeverError<Fut> where
Fut: Future<Output = T>, type Output = Result<T, Never>;
Self: Sized,
fn poll_unpin(&mut self, cx: &mut Context<'_>) -> Poll<Self::Output> where
Self: Unpin,
[src]
Self: Unpin,
fn now_or_never(self) -> Option<Self::Output> where
Self: Sized,
[src]
Self: Sized,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<F> IntoFuture for F where
F: Future,
[src]
F: Future,
type Output = <F as Future>::Output
🔬 This is a nightly-only experimental API. (
into_future
)The output that the future will produce on completion.
type Future = F
🔬 This is a nightly-only experimental API. (
into_future
)Which kind of future are we turning this into?
pub fn into_future(self) -> <F as IntoFuture>::Future
[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<F, T, E> TryFuture for F where
F: Future<Output = Result<T, E>> + ?Sized,
[src]
F: Future<Output = Result<T, E>> + ?Sized,
type Ok = T
The type of successful values yielded by this future
type Error = E
The type of failures yielded by this future
pub fn try_poll(
self: Pin<&mut F>,
cx: &mut Context<'_>
) -> Poll<<F as Future>::Output>
[src]
self: Pin<&mut F>,
cx: &mut Context<'_>
) -> Poll<<F as Future>::Output>
impl<Fut> TryFutureExt for Fut where
Fut: TryFuture + ?Sized,
[src]
Fut: TryFuture + ?Sized,
fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>ⓘ where
F: FnOnce(Self::Ok) -> T,
Self: Sized,
[src]
F: FnOnce(Self::Ok) -> T,
Self: Sized,
fn map_err<E, F>(self, f: F) -> MapErr<Self, F>ⓘ where
F: FnOnce(Self::Error) -> E,
Self: Sized,
[src]
F: FnOnce(Self::Error) -> E,
Self: Sized,
fn err_into<E>(self) -> ErrInto<Self, E>ⓘ where
Self: Sized,
Self::Error: Into<E>,
[src]
Self: Sized,
Self::Error: Into<E>,
fn and_then<Fut, F>(self, f: F) -> AndThen<Self, Fut, F>ⓘ where
F: FnOnce(Self::Ok) -> Fut,
Fut: TryFuture<Error = Self::Error>,
Self: Sized,
[src]
F: FnOnce(Self::Ok) -> Fut,
Fut: TryFuture<Error = Self::Error>,
Self: Sized,
fn or_else<Fut, F>(self, f: F) -> OrElse<Self, Fut, F>ⓘ where
F: FnOnce(Self::Error) -> Fut,
Fut: TryFuture<Ok = Self::Ok>,
Self: Sized,
[src]
F: FnOnce(Self::Error) -> Fut,
Fut: TryFuture<Ok = Self::Ok>,
Self: Sized,
fn inspect_ok<F>(self, f: F) -> InspectOk<Self, F>ⓘ where
F: FnOnce(&Self::Ok),
Self: Sized,
[src]
F: FnOnce(&Self::Ok),
Self: Sized,
fn inspect_err<F>(self, f: F) -> InspectErr<Self, F>ⓘNotable traits for InspectErr<Fut, F>
impl<Fut, F> Future for InspectErr<Fut, F> where
Fut: TryFuture,
F: FnOnce(&Fut::Error), type Output = Result<Fut::Ok, Fut::Error>;
where
F: FnOnce(&Self::Error),
Self: Sized,
[src]
Notable traits for InspectErr<Fut, F>
impl<Fut, F> Future for InspectErr<Fut, F> where
Fut: TryFuture,
F: FnOnce(&Fut::Error), type Output = Result<Fut::Ok, Fut::Error>;
F: FnOnce(&Self::Error),
Self: Sized,
fn try_flatten_stream(self) -> TryFlattenStream<Self> where
Self::Ok: TryStream<Error = Self::Error>,
Self: Sized,
[src]
Self::Ok: TryStream<Error = Self::Error>,
Self: Sized,
fn unwrap_or_else<F>(self, f: F) -> UnwrapOrElse<Self, F>ⓘNotable traits for UnwrapOrElse<Fut, F>
impl<Fut, F> Future for UnwrapOrElse<Fut, F> where
Fut: TryFuture,
F: FnOnce(Fut::Error) -> Fut::Ok, type Output = Fut::Ok;
where
Self: Sized,
F: FnOnce(Self::Error) -> Self::Ok,
[src]
Notable traits for UnwrapOrElse<Fut, F>
impl<Fut, F> Future for UnwrapOrElse<Fut, F> where
Fut: TryFuture,
F: FnOnce(Fut::Error) -> Fut::Ok, type Output = Fut::Ok;
Self: Sized,
F: FnOnce(Self::Error) -> Self::Ok,
fn into_future(self) -> IntoFuture<Self>ⓘNotable traits for IntoFuture<Fut>
impl<Fut: TryFuture> Future for IntoFuture<Fut> type Output = Result<Fut::Ok, Fut::Error>;
where
Self: Sized,
[src]
Notable traits for IntoFuture<Fut>
impl<Fut: TryFuture> Future for IntoFuture<Fut> type Output = Result<Fut::Ok, Fut::Error>;
Self: Sized,
fn try_poll_unpin(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<Self::Ok, Self::Error>> where
Self: Unpin,
[src]
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<Self::Ok, Self::Error>> where
Self: Unpin,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,