Struct AsyncConnect

Source
pub struct AsyncConnect<P, F> { /* private fields */ }

Trait Implementations§

Source§

impl<NXT, Fut, F, L> Linkable for AsyncConnect<L, ErrorFuc<F>>
where F: Fn(L::OUT) -> Fut + Send + Sync, Fut: Future<Output = Result<NXT, Error>> + Send + Sync + 'static, NXT: Send + Sync, L: Linkable + Send + Sync,

Source§

type OUT = NXT

Source§

fn then_async<F, FUT, NXT>(self, f: F) -> AsyncConnect<Self, F>
where F: Fn(Self::OUT) -> FUT, FUT: Future<Output = NXT> + Send + Sync, Self: Sized,

Source§

fn then_async_result<F, FUT, NXT>(self, f: F) -> AsyncConnect<Self, ErrorFuc<F>>
where F: Fn(Self::OUT) -> FUT, FUT: Future<Output = Result<NXT, Error>> + Send + Sync, Self: Sized,

Source§

fn then<F, NXT>(self, f: F) -> Connect<Self, F>
where F: Fn(Self::OUT) -> NXT, Self: Sized,

Source§

fn then_result<F, NXT>(self, f: F) -> Connect<Self, ErrorFuc<F>>
where F: Fn(Self::OUT) -> Result<NXT, Error>, Self: Sized,

Source§

impl<NXT, Fut, F, L> Linkable for AsyncConnect<L, F>
where F: 'static + Fn(L::OUT) -> Fut + Send + Sync, Fut: 'static + Future<Output = NXT> + Send + Sync, NXT: Send + Sync, L: Linkable + Send + Sync,

Source§

type OUT = NXT

Source§

fn then_async<F, FUT, NXT>(self, f: F) -> AsyncConnect<Self, F>
where F: Fn(Self::OUT) -> FUT, FUT: Future<Output = NXT> + Send + Sync, Self: Sized,

Source§

fn then_async_result<F, FUT, NXT>(self, f: F) -> AsyncConnect<Self, ErrorFuc<F>>
where F: Fn(Self::OUT) -> FUT, FUT: Future<Output = Result<NXT, Error>> + Send + Sync, Self: Sized,

Source§

fn then<F, NXT>(self, f: F) -> Connect<Self, F>
where F: Fn(Self::OUT) -> NXT, Self: Sized,

Source§

fn then_result<F, NXT>(self, f: F) -> Connect<Self, ErrorFuc<F>>
where F: Fn(Self::OUT) -> Result<NXT, Error>, Self: Sized,

Source§

impl<NXT, Fut, F, P> Pipeline for AsyncConnect<P, ErrorFuc<F>>
where F: Fn(P::OUT) -> Fut + Send + Sync, Fut: Future<Output = Result<NXT, Error>> + Send + Sync + 'static, NXT: Send + Sync, P: Pipeline + Send + Sync,

Source§

type IN = <P as Pipeline>::IN

Source§

fn process<'life0, 'async_trait>( &'life0 self, input: Self::IN, ) -> Pin<Box<dyn Future<Output = Result<NXT, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl<NXT, Fut, F, P> Pipeline for AsyncConnect<P, F>
where P: Pipeline + Sync + Send, F: Fn(P::OUT) -> Fut + 'static + Send + Sync, Fut: Future<Output = NXT> + Send + Sync + 'static, NXT: Send + Sync,

Source§

type IN = <P as Pipeline>::IN

Source§

fn process<'life0, 'async_trait>( &'life0 self, input: Self::IN, ) -> Pin<Box<dyn Future<Output = Result<NXT, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl<NXT, Fut, F, IN> Pipeline for AsyncConnect<Start<IN>, ErrorFuc<F>>
where IN: Sync + Send, F: Fn(IN) -> Fut + Sync + Send, Fut: Future<Output = Result<NXT, Error>> + Send + Sync + 'static, NXT: Send + Sync,

Source§

type IN = IN

Source§

fn process<'life0, 'async_trait>( &'life0 self, input: Self::IN, ) -> Pin<Box<dyn Future<Output = Result<NXT, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl<NXT, Fut, F, IN> Pipeline for AsyncConnect<Start<IN>, F>
where F: Fn(IN) -> Fut + 'static + Send + Sync, Fut: Future<Output = NXT> + Send + Sync + 'static, NXT: Send + Sync, IN: Send + Sync,

Source§

type IN = IN

Source§

fn process<'life0, 'async_trait>( &'life0 self, input: IN, ) -> Pin<Box<dyn Future<Output = Result<NXT, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Auto Trait Implementations§

§

impl<P, F> Freeze for AsyncConnect<P, F>
where P: Freeze, F: Freeze,

§

impl<P, F> RefUnwindSafe for AsyncConnect<P, F>

§

impl<P, F> Send for AsyncConnect<P, F>
where P: Send, F: Send,

§

impl<P, F> Sync for AsyncConnect<P, F>
where P: Sync, F: Sync,

§

impl<P, F> Unpin for AsyncConnect<P, F>
where P: Unpin, F: Unpin,

§

impl<P, F> UnwindSafe for AsyncConnect<P, F>
where P: 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<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<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.