Skip to main content

PipeHandlers

Struct PipeHandlers 

Source
pub struct PipeHandlers<Providers>(pub PhantomData<Providers>);

Tuple Fields§

§0: PhantomData<Providers>

Trait Implementations§

Source§

impl<Component, Provider, Providers: ComposeProviders<Provider = Provider>> DelegateComponent<Component> for PipeHandlers<Providers>

Source§

type Delegate = Provider

Source§

impl<Component, Provider, Providers: ComposeProviders<Provider = Provider>, __Context__, __Params__> IsProviderFor<Component, __Context__, __Params__> for PipeHandlers<Providers>
where Provider: IsProviderFor<Component, __Context__, __Params__>,

Auto Trait Implementations§

§

impl<Providers> Freeze for PipeHandlers<Providers>

§

impl<Providers> RefUnwindSafe for PipeHandlers<Providers>
where Providers: RefUnwindSafe,

§

impl<Providers> Send for PipeHandlers<Providers>
where Providers: Send,

§

impl<Providers> Sync for PipeHandlers<Providers>
where Providers: Sync,

§

impl<Providers> Unpin for PipeHandlers<Providers>
where Providers: Unpin,

§

impl<Providers> UnsafeUnpin for PipeHandlers<Providers>

§

impl<Providers> UnwindSafe for PipeHandlers<Providers>
where Providers: 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<__Component__, __Context__, Code, Input> AsyncComputer<__Context__, Code, Input> for __Component__

Source§

type Output = <<__Component__ as DelegateComponent<AsyncComputerComponent>>::Delegate as AsyncComputer<__Context__, Code, Input>>::Output

Source§

fn compute_async( __context__: &__Context__, _code: PhantomData<Code>, input: Input, ) -> impl Future<Output = <__Component__ as AsyncComputer<__Context__, Code, Input>>::Output>

Source§

impl<__Component__, __Context__, Code, Input> AsyncComputerRef<__Context__, Code, Input> for __Component__

Source§

type Output = <<__Component__ as DelegateComponent<AsyncComputerRefComponent>>::Delegate as AsyncComputerRef<__Context__, Code, Input>>::Output

Source§

fn compute_async_ref( __context__: &__Context__, _code: PhantomData<Code>, input: &Input, ) -> impl Future<Output = <__Component__ as AsyncComputerRef<__Context__, Code, Input>>::Output>

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<Builder, Source, Output> CanBuildFrom<Source> for Builder
where Source: HasFields + IntoBuilder, <Source as HasFields>::Fields: FieldsBuilder<<Source as IntoBuilder>::Builder, Builder, Output = Output>,

Source§

type Output = Output

Source§

fn build_from(self, source: Source) -> Output

Source§

impl<__Context__, Code, Input> CanCompute<Code, Input> for __Context__
where __Context__: Computer<__Context__, Code, Input>,

Source§

type Output = <__Context__ as Computer<__Context__, Code, Input>>::Output

Source§

fn compute( &self, _code: PhantomData<Code>, input: Input, ) -> <__Context__ as CanCompute<Code, Input>>::Output

Source§

impl<__Context__, Code, Input> CanComputeAsync<Code, Input> for __Context__
where __Context__: AsyncComputer<__Context__, Code, Input>,

Source§

type Output = <__Context__ as AsyncComputer<__Context__, Code, Input>>::Output

Source§

fn compute_async( &self, _code: PhantomData<Code>, input: Input, ) -> impl Future<Output = <__Context__ as CanComputeAsync<Code, Input>>::Output>

Source§

impl<__Context__, Code, Input> CanComputeAsyncRef<Code, Input> for __Context__
where __Context__: AsyncComputerRef<__Context__, Code, Input>,

Source§

type Output = <__Context__ as AsyncComputerRef<__Context__, Code, Input>>::Output

Source§

fn compute_async_ref( &self, _code: PhantomData<Code>, input: &Input, ) -> impl Future<Output = <__Context__ as CanComputeAsyncRef<Code, Input>>::Output>

Source§

impl<__Context__, Code, Input> CanComputeRef<Code, Input> for __Context__
where __Context__: ComputerRef<__Context__, Code, Input>,

Source§

type Output = <__Context__ as ComputerRef<__Context__, Code, Input>>::Output

Source§

fn compute_ref( &self, _code: PhantomData<Code>, input: &Input, ) -> <__Context__ as CanComputeRef<Code, Input>>::Output

Source§

impl<Source, Target, Remainder> CanDowncastFields<Target> for Source
where Target: HasFields, <Target as HasFields>::Fields: FieldsExtractor<Source, Target, Remainder = Remainder>,

Source§

type Remainder = Remainder

Source§

fn downcast_fields( self, _tag: PhantomData<Target>, ) -> Result<Target, <Source as CanDowncastFields<Target>>::Remainder>

Source§

impl<__Context__, Code, Input> CanHandle<Code, Input> for __Context__
where __Context__: HasErrorType + Handler<__Context__, Code, Input>,

Source§

type Output = <__Context__ as Handler<__Context__, Code, Input>>::Output

Source§

fn handle( &self, _tag: PhantomData<Code>, input: Input, ) -> impl Future<Output = Result<<__Context__ as CanHandle<Code, Input>>::Output, <__Context__ as HasErrorType>::Error>>

Source§

impl<__Context__, Code, Input> CanHandleRef<Code, Input> for __Context__
where __Context__: HasErrorType + HandlerRef<__Context__, Code, Input>,

Source§

type Output = <__Context__ as HandlerRef<__Context__, Code, Input>>::Output

Source§

fn handle_ref( &self, _tag: PhantomData<Code>, input: &Input, ) -> impl Future<Output = Result<<__Context__ as CanHandleRef<Code, Input>>::Output, <__Context__ as HasErrorType>::Error>>

Source§

impl<__Context__, Code> CanProduce<Code> for __Context__
where __Context__: Producer<__Context__, Code>,

Source§

type Output = <__Context__ as Producer<__Context__, Code>>::Output

Source§

fn produce( &self, _code: PhantomData<Code>, ) -> <__Context__ as CanProduce<Code>>::Output

Source§

impl<__Context__, SourceError> CanRaiseError<SourceError> for __Context__
where __Context__: HasErrorType + ErrorRaiser<__Context__, SourceError>,

Source§

fn raise_error(error: SourceError) -> <__Context__ as HasErrorType>::Error

Source§

impl<__Context__, Code, Input> CanTryCompute<Code, Input> for __Context__
where __Context__: HasErrorType + TryComputer<__Context__, Code, Input>,

Source§

type Output = <__Context__ as TryComputer<__Context__, Code, Input>>::Output

Source§

fn try_compute( &self, _code: PhantomData<Code>, input: Input, ) -> Result<<__Context__ as CanTryCompute<Code, Input>>::Output, <__Context__ as HasErrorType>::Error>

Source§

impl<__Context__, Code, Input> CanTryComputeRef<Code, Input> for __Context__
where __Context__: HasErrorType + TryComputerRef<__Context__, Code, Input>,

Source§

type Output = <__Context__ as TryComputerRef<__Context__, Code, Input>>::Output

Source§

fn try_compute_ref( &self, _code: PhantomData<Code>, input: &Input, ) -> Result<<__Context__ as CanTryComputeRef<Code, Input>>::Output, <__Context__ as HasErrorType>::Error>

Source§

impl<__Context__, Detail> CanWrapError<Detail> for __Context__
where __Context__: HasErrorType + ErrorWrapper<__Context__, Detail>,

Source§

fn wrap_error( error: <__Context__ as HasErrorType>::Error, detail: Detail, ) -> <__Context__ as HasErrorType>::Error

Source§

impl<__Component__, __Context__, Code, Input> Computer<__Context__, Code, Input> for __Component__
where __Component__: DelegateComponent<ComputerComponent> + IsProviderFor<ComputerComponent, __Context__, (Code, Input)>, <__Component__ as DelegateComponent<ComputerComponent>>::Delegate: Computer<__Context__, Code, Input>,

Source§

type Output = <<__Component__ as DelegateComponent<ComputerComponent>>::Delegate as Computer<__Context__, Code, Input>>::Output

Source§

fn compute( __context__: &__Context__, _code: PhantomData<Code>, input: Input, ) -> <__Component__ as Computer<__Context__, Code, Input>>::Output

Source§

impl<__Component__, __Context__, Code, Input> ComputerRef<__Context__, Code, Input> for __Component__
where __Component__: DelegateComponent<ComputerRefComponent> + IsProviderFor<ComputerRefComponent, __Context__, (Code, Input)>, <__Component__ as DelegateComponent<ComputerRefComponent>>::Delegate: ComputerRef<__Context__, Code, Input>,

Source§

type Output = <<__Component__ as DelegateComponent<ComputerRefComponent>>::Delegate as ComputerRef<__Context__, Code, Input>>::Output

Source§

fn compute_ref( __context__: &__Context__, _code: PhantomData<Code>, input: &Input, ) -> <__Component__ as ComputerRef<__Context__, Code, Input>>::Output

Source§

impl<__Component__, __Context__, SourceError> ErrorRaiser<__Context__, SourceError> for __Component__
where __Context__: HasErrorType, __Component__: DelegateComponent<ErrorRaiserComponent> + IsProviderFor<ErrorRaiserComponent, __Context__, SourceError>, <__Component__ as DelegateComponent<ErrorRaiserComponent>>::Delegate: ErrorRaiser<__Context__, SourceError>,

Source§

fn raise_error(error: SourceError) -> <__Context__ as HasErrorType>::Error

Source§

impl<__Component__, __Context__> ErrorTypeProvider<__Context__> for __Component__

Source§

impl<__Component__, __Context__, Detail> ErrorWrapper<__Context__, Detail> for __Component__
where __Context__: HasErrorType, __Component__: DelegateComponent<ErrorWrapperComponent> + IsProviderFor<ErrorWrapperComponent, __Context__, Detail>, <__Component__ as DelegateComponent<ErrorWrapperComponent>>::Delegate: ErrorWrapper<__Context__, Detail>,

Source§

fn wrap_error( error: <__Context__ as HasErrorType>::Error, detail: Detail, ) -> <__Context__ as HasErrorType>::Error

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<__Component__, __Context__, Code, Input> Handler<__Context__, Code, Input> for __Component__
where __Context__: HasErrorType, __Component__: DelegateComponent<HandlerComponent> + IsProviderFor<HandlerComponent, __Context__, (Code, Input)>, <__Component__ as DelegateComponent<HandlerComponent>>::Delegate: Handler<__Context__, Code, Input>,

Source§

type Output = <<__Component__ as DelegateComponent<HandlerComponent>>::Delegate as Handler<__Context__, Code, Input>>::Output

Source§

fn handle( __context__: &__Context__, _tag: PhantomData<Code>, input: Input, ) -> impl Future<Output = Result<<__Component__ as Handler<__Context__, Code, Input>>::Output, <__Context__ as HasErrorType>::Error>>

Source§

impl<__Component__, __Context__, Code, Input> HandlerRef<__Context__, Code, Input> for __Component__
where __Context__: HasErrorType, __Component__: DelegateComponent<HandlerRefComponent> + IsProviderFor<HandlerRefComponent, __Context__, (Code, Input)>, <__Component__ as DelegateComponent<HandlerRefComponent>>::Delegate: HandlerRef<__Context__, Code, Input>,

Source§

type Output = <<__Component__ as DelegateComponent<HandlerRefComponent>>::Delegate as HandlerRef<__Context__, Code, Input>>::Output

Source§

fn handle_ref( __context__: &__Context__, _tag: PhantomData<Code>, input: &Input, ) -> impl Future<Output = Result<<__Component__ as HandlerRef<__Context__, Code, Input>>::Output, <__Context__ as HasErrorType>::Error>>

Source§

impl<__Context__> HasErrorType for __Context__
where __Context__: ErrorTypeProvider<__Context__>,

Source§

type Error = <__Context__ as ErrorTypeProvider<__Context__>>::Error

Source§

impl<__Context__, Tag> HasType<Tag> for __Context__
where __Context__: TypeProvider<__Context__, Tag>,

Source§

type Type = <__Context__ as TypeProvider<__Context__, Tag>>::Type

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<__Component__, __Context__, Code> Producer<__Context__, Code> for __Component__
where __Component__: DelegateComponent<ProducerComponent> + IsProviderFor<ProducerComponent, __Context__, Code>, <__Component__ as DelegateComponent<ProducerComponent>>::Delegate: Producer<__Context__, Code>,

Source§

type Output = <<__Component__ as DelegateComponent<ProducerComponent>>::Delegate as Producer<__Context__, Code>>::Output

Source§

fn produce( __context__: &__Context__, _code: PhantomData<Code>, ) -> <__Component__ as Producer<__Context__, Code>>::Output

Source§

impl<__Component__, __Context__, Code, Input> TryComputer<__Context__, Code, Input> for __Component__
where __Context__: HasErrorType, __Component__: DelegateComponent<TryComputerComponent> + IsProviderFor<TryComputerComponent, __Context__, (Code, Input)>, <__Component__ as DelegateComponent<TryComputerComponent>>::Delegate: TryComputer<__Context__, Code, Input>,

Source§

type Output = <<__Component__ as DelegateComponent<TryComputerComponent>>::Delegate as TryComputer<__Context__, Code, Input>>::Output

Source§

fn try_compute( __context__: &__Context__, _code: PhantomData<Code>, input: Input, ) -> Result<<__Component__ as TryComputer<__Context__, Code, Input>>::Output, <__Context__ as HasErrorType>::Error>

Source§

impl<__Component__, __Context__, Code, Input> TryComputerRef<__Context__, Code, Input> for __Component__
where __Context__: HasErrorType, __Component__: DelegateComponent<TryComputerRefComponent> + IsProviderFor<TryComputerRefComponent, __Context__, (Code, Input)>, <__Component__ as DelegateComponent<TryComputerRefComponent>>::Delegate: TryComputerRef<__Context__, Code, Input>,

Source§

type Output = <<__Component__ as DelegateComponent<TryComputerRefComponent>>::Delegate as TryComputerRef<__Context__, Code, Input>>::Output

Source§

fn try_compute_ref( __context__: &__Context__, _code: PhantomData<Code>, input: &Input, ) -> Result<<__Component__ as TryComputerRef<__Context__, Code, Input>>::Output, <__Context__ as HasErrorType>::Error>

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.
Source§

impl<__Component__, __Context__, Tag> TypeProvider<__Context__, Tag> for __Component__
where __Component__: DelegateComponent<TypeProviderComponent> + IsProviderFor<TypeProviderComponent, __Context__, Tag>, <__Component__ as DelegateComponent<TypeProviderComponent>>::Delegate: TypeProvider<__Context__, Tag>,

Source§

type Type = <<__Component__ as DelegateComponent<TypeProviderComponent>>::Delegate as TypeProvider<__Context__, Tag>>::Type