Skip to main content

UseInputDelegate

Struct UseInputDelegate 

Source
pub struct UseInputDelegate<Components>(pub PhantomData<Components>);

Tuple Fields§

§0: PhantomData<Components>

Trait Implementations§

Source§

impl<__Context__, Code, Input, __Components__, __Delegate__> AsyncComputer<__Context__, Code, Input> for UseInputDelegate<__Components__>
where __Components__: DelegateComponent<Input, Delegate = __Delegate__>, __Delegate__: AsyncComputer<__Context__, Code, Input>,

Source§

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

Source§

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

Source§

impl<__Context__, Code, Input, __Components__, __Delegate__> AsyncComputerRef<__Context__, Code, Input> for UseInputDelegate<__Components__>
where __Components__: DelegateComponent<Input, Delegate = __Delegate__>, __Delegate__: AsyncComputerRef<__Context__, Code, Input>,

Source§

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

Source§

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

Source§

impl<__Context__, Code, Input, __Components__, __Delegate__> Computer<__Context__, Code, Input> for UseInputDelegate<__Components__>
where __Components__: DelegateComponent<Input, Delegate = __Delegate__>, __Delegate__: Computer<__Context__, Code, Input>,

Source§

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

Source§

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

Source§

impl<__Context__, Code, Input, __Components__, __Delegate__> ComputerRef<__Context__, Code, Input> for UseInputDelegate<__Components__>
where __Components__: DelegateComponent<Input, Delegate = __Delegate__>, __Delegate__: ComputerRef<__Context__, Code, Input>,

Source§

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

Source§

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

Source§

impl<__Context__, Code, Input, __Components__, __Delegate__> Handler<__Context__, Code, Input> for UseInputDelegate<__Components__>
where __Context__: HasErrorType, __Components__: DelegateComponent<Input, Delegate = __Delegate__>, __Delegate__: Handler<__Context__, Code, Input>,

Source§

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

Source§

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

Source§

impl<__Context__, Code, Input, __Components__, __Delegate__> HandlerRef<__Context__, Code, Input> for UseInputDelegate<__Components__>
where __Context__: HasErrorType, __Components__: DelegateComponent<Input, Delegate = __Delegate__>, __Delegate__: HandlerRef<__Context__, Code, Input>,

Source§

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

Source§

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

Source§

impl<__Context__, Code, Input, __Components__, __Delegate__> TryComputer<__Context__, Code, Input> for UseInputDelegate<__Components__>
where __Context__: HasErrorType, __Components__: DelegateComponent<Input, Delegate = __Delegate__>, __Delegate__: TryComputer<__Context__, Code, Input>,

Source§

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

Source§

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

Source§

impl<__Context__, Code, Input, __Components__, __Delegate__> TryComputerRef<__Context__, Code, Input> for UseInputDelegate<__Components__>
where __Context__: HasErrorType, __Components__: DelegateComponent<Input, Delegate = __Delegate__>, __Delegate__: TryComputerRef<__Context__, Code, Input>,

Source§

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

Source§

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

Source§

impl<__Context__, Code, Input, __Components__, __Delegate__> IsProviderFor<AsyncComputerComponent, __Context__, (Code, Input)> for UseInputDelegate<__Components__>
where __Components__: DelegateComponent<Input, Delegate = __Delegate__>, __Delegate__: IsProviderFor<AsyncComputerComponent, __Context__, (Code, Input)> + AsyncComputer<__Context__, Code, Input>,

Source§

impl<__Context__, Code, Input, __Components__, __Delegate__> IsProviderFor<AsyncComputerRefComponent, __Context__, (Code, Input)> for UseInputDelegate<__Components__>
where __Components__: DelegateComponent<Input, Delegate = __Delegate__>, __Delegate__: IsProviderFor<AsyncComputerRefComponent, __Context__, (Code, Input)> + AsyncComputerRef<__Context__, Code, Input>,

Source§

impl<__Context__, Code, Input, __Components__, __Delegate__> IsProviderFor<ComputerComponent, __Context__, (Code, Input)> for UseInputDelegate<__Components__>
where __Components__: DelegateComponent<Input, Delegate = __Delegate__>, __Delegate__: IsProviderFor<ComputerComponent, __Context__, (Code, Input)> + Computer<__Context__, Code, Input>,

Source§

impl<__Context__, Code, Input, __Components__, __Delegate__> IsProviderFor<ComputerRefComponent, __Context__, (Code, Input)> for UseInputDelegate<__Components__>
where __Components__: DelegateComponent<Input, Delegate = __Delegate__>, __Delegate__: IsProviderFor<ComputerRefComponent, __Context__, (Code, Input)> + ComputerRef<__Context__, Code, Input>,

Source§

impl<__Context__, Code, Input, __Components__, __Delegate__> IsProviderFor<HandlerComponent, __Context__, (Code, Input)> for UseInputDelegate<__Components__>
where __Context__: HasErrorType, __Components__: DelegateComponent<Input, Delegate = __Delegate__>, __Delegate__: IsProviderFor<HandlerComponent, __Context__, (Code, Input)> + Handler<__Context__, Code, Input>,

Source§

impl<__Context__, Code, Input, __Components__, __Delegate__> IsProviderFor<HandlerRefComponent, __Context__, (Code, Input)> for UseInputDelegate<__Components__>
where __Context__: HasErrorType, __Components__: DelegateComponent<Input, Delegate = __Delegate__>, __Delegate__: IsProviderFor<HandlerRefComponent, __Context__, (Code, Input)> + HandlerRef<__Context__, Code, Input>,

Source§

impl<__Context__, Code, Input, __Components__, __Delegate__> IsProviderFor<TryComputerComponent, __Context__, (Code, Input)> for UseInputDelegate<__Components__>
where __Context__: HasErrorType, __Components__: DelegateComponent<Input, Delegate = __Delegate__>, __Delegate__: IsProviderFor<TryComputerComponent, __Context__, (Code, Input)> + TryComputer<__Context__, Code, Input>,

Source§

impl<__Context__, Code, Input, __Components__, __Delegate__> IsProviderFor<TryComputerRefComponent, __Context__, (Code, Input)> for UseInputDelegate<__Components__>
where __Context__: HasErrorType, __Components__: DelegateComponent<Input, Delegate = __Delegate__>, __Delegate__: IsProviderFor<TryComputerRefComponent, __Context__, (Code, Input)> + TryComputerRef<__Context__, Code, Input>,

Auto Trait Implementations§

§

impl<Components> Freeze for UseInputDelegate<Components>

§

impl<Components> RefUnwindSafe for UseInputDelegate<Components>
where Components: RefUnwindSafe,

§

impl<Components> Send for UseInputDelegate<Components>
where Components: Send,

§

impl<Components> Sync for UseInputDelegate<Components>
where Components: Sync,

§

impl<Components> Unpin for UseInputDelegate<Components>
where Components: Unpin,

§

impl<Components> UnsafeUnpin for UseInputDelegate<Components>

§

impl<Components> UnwindSafe for UseInputDelegate<Components>
where Components: 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<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<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.