Struct UnitError

#[must_use = "futures/streams/sinks do nothing unless you `.await` or poll them"]
pub struct UnitError<Fut> { /* private fields */ }

Future for the unit_error combinator.

Trait Implementations

impl<'__pin, Fut> Unpin for UnitError<Fut> where PinnedFieldsOf<__Origin<'__pin, Fut>>: Unpin,

impl<Fut> Debug for UnitError<Fut> where Map<Fut, OkFn<()>>: Debug,

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<Fut> FusedFuture for UnitError<Fut> where Map<Fut, OkFn<()>>: FusedFuture,

fn is_terminated(&self) -> bool

impl<Fut> Future for UnitError<Fut> where Map<Fut, OkFn<()>>: Future,

type Output = <Map<Fut, OkFn<()>> as Future>::Output;
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

Auto Trait Implementations

impl<Fut> Freeze for UnitError<Fut> where Map<Fut, OkFn<()>>: Freeze,

impl<Fut> RefUnwindSafe for UnitError<Fut> where Map<Fut, OkFn<()>>: RefUnwindSafe,

impl<Fut> Send for UnitError<Fut> where Map<Fut, OkFn<()>>: Send,

impl<Fut> Sync for UnitError<Fut> where Map<Fut, OkFn<()>>: Sync,

impl<Fut> UnsafeUnpin for UnitError<Fut> where Map<Fut, OkFn<()>>: UnsafeUnpin,

impl<Fut> UnwindSafe for UnitError<Fut> where Map<Fut, OkFn<()>>: UnwindSafe,

Blanket Implementations

impl<F> IntoFuture for UnitError<Fut> 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 UnitError<Fut> 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 UnitError<Fut> where Fut: TryFuture + ?Sized,

impl<T> Any for UnitError<Fut> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for UnitError<Fut> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for UnitError<Fut> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for UnitError<Fut>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FutureExt for UnitError<Fut> where T: Future + ?Sized,

impl<T, U> Into<U> for UnitError<Fut> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for UnitError<Fut> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for UnitError<Fut> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>