Trait futures_util::fns::FnOnce1

source ·
pub trait FnOnce1<A> {
    type Output;

    // Required method
    fn call_once(self, arg: A) -> Self::Output;
}

Required Associated Types§

Required Methods§

source

fn call_once(self, arg: A) -> Self::Output

Implementors§

source§

impl<'a, F, T, E> FnOnce1<&'a Result<T, E>> for InspectErrFn<F>
where F: FnOnce1<&'a E, Output = ()>,

source§

impl<'a, F, T, E> FnOnce1<&'a Result<T, E>> for InspectOkFn<F>
where F: FnOnce1<&'a T, Output = ()>,

source§

impl<A, E> FnOnce1<A> for OkFn<E>

source§

type Output = Result<A, E>

source§

impl<A, T> FnOnce1<A> for IntoFn<T>
where A: Into<T>,

source§

impl<F, A> FnOnce1<A> for InspectFn<F>
where F: for<'a> FnOnce1<&'a A, Output = ()>,

source§

impl<F, G, A> FnOnce1<A> for ChainFn<F, G>
where F: FnOnce1<A>, G: FnOnce1<F::Output>,

source§

type Output = <G as FnOnce1<<F as FnOnce1<A>>::Output>>::Output

source§

impl<F, T, E> FnOnce1<Result<T, E>> for MapErrFn<F>
where F: FnOnce1<E>,

source§

type Output = Result<T, <F as FnOnce1<E>>::Output>

source§

impl<F, T, E> FnOnce1<Result<T, E>> for MapOkFn<F>
where F: FnOnce1<T>,

source§

type Output = Result<<F as FnOnce1<T>>::Output, E>

source§

impl<F, T, E> FnOnce1<Result<T, E>> for UnwrapOrElseFn<F>
where F: FnOnce1<E, Output = T>,

source§

impl<T> FnOnce1<Result<T, T>> for MergeResultFn

source§

impl<T, A, R> FnOnce1<A> for T
where T: FnOnce(A) -> R,

source§

impl<T, Item> FnOnce1<&Item> for NextIfEqFn<'_, T, Item>
where T: ?Sized, Item: PartialEq<T>,