Struct ErrInto
#[must_use = "futures/streams/sinks do nothing unless you `.await` or poll them"]
pub struct ErrInto<Fut, E> { /* private fields */ }
Future for the err_into method.
Trait Implementations
impl<'__pin, Fut, E> Unpin for ErrInto<Fut, E>
where
PinnedFieldsOf<__Origin<'__pin, Fut, E>>: Unpin,
impl<Fut, E> Debug for ErrInto<Fut, E>
where
MapErr<Fut, IntoFn<E>>: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<Fut, E> FusedFuture for ErrInto<Fut, E>
where
MapErr<Fut, IntoFn<E>>: FusedFuture,
fn is_terminated(&self) -> bool
impl<Fut, E> Future for ErrInto<Fut, E>
where
MapErr<Fut, IntoFn<E>>: Future,
type Output = <MapErr<Fut, IntoFn<E>> as Future>::Output;fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
Auto Trait Implementations
impl<Fut, E> Freeze for ErrInto<Fut, E>
where
MapErr<Fut, IntoFn<E>>: Freeze,
impl<Fut, E> RefUnwindSafe for ErrInto<Fut, E>
where
MapErr<Fut, IntoFn<E>>: RefUnwindSafe,
impl<Fut, E> Send for ErrInto<Fut, E>
where
MapErr<Fut, IntoFn<E>>: Send,
impl<Fut, E> Sync for ErrInto<Fut, E>
where
MapErr<Fut, IntoFn<E>>: Sync,
impl<Fut, E> UnsafeUnpin for ErrInto<Fut, E>
where
MapErr<Fut, IntoFn<E>>: UnsafeUnpin,
impl<Fut, E> UnwindSafe for ErrInto<Fut, E>
where
MapErr<Fut, IntoFn<E>>: UnwindSafe,
Blanket Implementations
impl<F> IntoFuture for ErrInto<Fut, E>
where
F: Future,
type Output = <F as Future>::Output;type IntoFuture = F;fn into_future(self) -> <F as IntoFuture>::IntoFuture
impl<F, T, E> TryFuture for ErrInto<Fut, E>
where
F: Future<Output = Result<T, E>> + ?Sized,
type Ok = T;type Error = E;fn try_poll(self: Pin<&mut F>, cx: &mut Context<'_>) -> Poll<<F as Future>::Output>
impl<Fut> TryFutureExt for ErrInto<Fut, E>
where
Fut: TryFuture + ?Sized,
impl<T> Any for ErrInto<Fut, E>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ErrInto<Fut, E>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ErrInto<Fut, E>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ErrInto<Fut, E>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> FutureExt for ErrInto<Fut, E>
where
T: Future + ?Sized,
impl<T, U> Into<U> for ErrInto<Fut, E>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ErrInto<Fut, E>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ErrInto<Fut, E>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>