Then

Struct Then 

Source
pub struct Then<T, F> { /* private fields */ }

Trait Implementations§

Source§

impl<Bkend, T, S, F, Ct> BackendStreamingTask<Bkend> for Then<T, F>
where Bkend: Clone + Sync + Send + 'static, F: Sync + Send + 'static + FnOnce(T::Output) -> S, T: BackendTask<Bkend, MetadataType = Ct>, S: BackendStreamingTask<Bkend, MetadataType = Ct>, Ct: PartialEq,

Source§

type Output = <S as BackendStreamingTask<Bkend>>::Output

Source§

type MetadataType = Ct

Source§

fn into_stream( self, backend: &Bkend, ) -> impl Stream<Item = Self::Output> + Send + Unpin + 'static

Source§

fn metadata() -> Vec<Self::MetadataType>

Metadata provides a way of grouping different tasks for use in constraints, if you override the default implementation.
Source§

impl<Bkend, T, T2, F, Ct> BackendTask<Bkend> for Then<T, F>
where Bkend: Clone + Send + 'static, F: Sync + Send + 'static + FnOnce(T::Output) -> T2, T: BackendTask<Bkend, MetadataType = Ct>, T2: BackendTask<Bkend, MetadataType = Ct>, Ct: PartialEq,

Source§

type Output = <T2 as BackendTask<Bkend>>::Output

Source§

type MetadataType = Ct

Source§

fn into_future( self, backend: &Bkend, ) -> impl Future<Output = Self::Output> + Send + 'static

Source§

fn metadata() -> Vec<Self::MetadataType>

Metadata provides a way of grouping different tasks for use in constraints, if you override the default implementation.

Auto Trait Implementations§

§

impl<T, F> Freeze for Then<T, F>
where T: Freeze, F: Freeze,

§

impl<T, F> RefUnwindSafe for Then<T, F>

§

impl<T, F> Send for Then<T, F>
where T: Send, F: Send,

§

impl<T, F> Sync for Then<T, F>
where T: Sync, F: Sync,

§

impl<T, F> Unpin for Then<T, F>
where T: Unpin, F: Unpin,

§

impl<T, F> UnwindSafe for Then<T, F>
where T: UnwindSafe, F: UnwindSafe,

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<Bkend, T> BackendTaskExt<Bkend> for T
where T: BackendTask<Bkend>,

Source§

fn then<T, F>(self, create_next: F) -> Then<Self, F>
where Self: Sized, T: BackendTask<Bkend>, F: FnOnce(Self::Output) -> T,

Source§

fn then_stream<S, F>(self, create_next: F) -> Then<Self, F>
where Self: Sized, S: BackendStreamingTask<Bkend>, F: FnOnce(Self::Output) -> S,

Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<Bkend, T, O, E> TryBackendTaskExt<Bkend> for T
where T: BackendTask<Bkend, Output = Result<O, E>>,

Source§

type Error = E

Source§

type Ok = O

Source§

fn map_stream<S, F>(self, create_next: F) -> Map<Self, F>
where Self: Sized, S: BackendStreamingTask<Bkend>, F: FnOnce(Self::Ok) -> S,

Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.