[−][src]Struct act_zero::async_fn::AsyncMap
Return type of AsyncFnOnce::map and AsyncMutFnOnce::map.
Trait Implementations
impl<F, G, T, R> AsyncFnOnce<T> for AsyncMap<F, G> where
F: AsyncFnOnce<T>,
G: FnOnce(F::Output, &T) -> R + Send + 'static,
R: Send + 'static,
T: Sync, [src]
F: AsyncFnOnce<T>,
G: FnOnce(F::Output, &T) -> R + Send + 'static,
R: Send + 'static,
T: Sync,
type Output = R
Output type of the returned future.
fn call(self, arg: &T) -> BoxFuture<'_, R>[src]
fn call_boxed(self: Box<Self>, arg: &T) -> BoxFuture<'_, Self::Output>[src]
fn map<G, R>(self, g: G) -> AsyncMap<Self, G> where
G: FnOnce(Self::Output, &T) -> R,
Self: Sized, [src]
G: FnOnce(Self::Output, &T) -> R,
Self: Sized,
fn bind_output(self, tx: Sender<Self::Output>) -> BindOutput<Self, Self::Output> where
Self: Sized, [src]
Self: Sized,
impl<F, G, T, R> AsyncMutFnOnce<T> for AsyncMap<F, G> where
F: AsyncMutFnOnce<T> + Send + 'static,
G: FnOnce(F::Output, &mut T) -> R + Send + 'static,
R: Send + 'static,
T: Send, [src]
F: AsyncMutFnOnce<T> + Send + 'static,
G: FnOnce(F::Output, &mut T) -> R + Send + 'static,
R: Send + 'static,
T: Send,
type Output = R
Output type of the returned future.
fn call(self, arg: &mut T) -> BoxFuture<'_, R>[src]
fn call_boxed(self: Box<Self>, arg: &mut T) -> BoxFuture<'_, Self::Output>[src]
fn map<G, R>(self, g: G) -> AsyncMap<Self, G> where
G: FnOnce(Self::Output, &mut T) -> R,
Self: Sized, [src]
G: FnOnce(Self::Output, &mut T) -> R,
Self: Sized,
fn bind_output(self, tx: Sender<Self::Output>) -> BindOutput<Self, Self::Output> where
Self: Sized, [src]
Self: Sized,
Auto Trait Implementations
impl<F, G> RefUnwindSafe for AsyncMap<F, G> where
F: RefUnwindSafe,
G: RefUnwindSafe,
F: RefUnwindSafe,
G: RefUnwindSafe,
impl<F, G> Send for AsyncMap<F, G> where
F: Send,
G: Send,
F: Send,
G: Send,
impl<F, G> Sync for AsyncMap<F, G> where
F: Sync,
G: Sync,
F: Sync,
G: Sync,
impl<F, G> Unpin for AsyncMap<F, G> where
F: Unpin,
G: Unpin,
F: Unpin,
G: Unpin,
impl<F, G> UnwindSafe for AsyncMap<F, G> where
F: UnwindSafe,
G: UnwindSafe,
F: UnwindSafe,
G: 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,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, E> IntoResult<T, E> for T[src]
fn into_result(Self) -> Result<T, E>[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.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,