pub struct UseDelegate<Components>(pub PhantomData<Components>);Tuple Fields§
§0: PhantomData<Components>Trait Implementations§
Source§impl<Context, SourceError, __Components__, __Delegate__> ErrorRaiser<Context, SourceError> for UseDelegate<__Components__>where
Context: HasErrorType,
__Components__: DelegateComponent<SourceError, Delegate = __Delegate__>,
__Delegate__: ErrorRaiser<Context, SourceError>,
Used for injecting external error types into Self::Error.
impl<Context, SourceError, __Components__, __Delegate__> ErrorRaiser<Context, SourceError> for UseDelegate<__Components__>where
Context: HasErrorType,
__Components__: DelegateComponent<SourceError, Delegate = __Delegate__>,
__Delegate__: ErrorRaiser<Context, SourceError>,
Used for injecting external error types into Self::Error.
As an example, if Context: CanRaiseError<ParseIntError>, then we would be
able to call Context::raise_error(err) for an error value
err: ParseIntError and get back
a Context::Error value.
fn raise_error(error: SourceError) -> <Context as HasErrorType>::Error
Source§impl<Context, Detail, __Components__, __Delegate__> ErrorWrapper<Context, Detail> for UseDelegate<__Components__>where
Context: HasErrorType,
__Components__: DelegateComponent<Detail, Delegate = __Delegate__>,
__Delegate__: ErrorWrapper<Context, Detail>,
impl<Context, Detail, __Components__, __Delegate__> ErrorWrapper<Context, Detail> for UseDelegate<__Components__>where
Context: HasErrorType,
__Components__: DelegateComponent<Detail, Delegate = __Delegate__>,
__Delegate__: ErrorWrapper<Context, Detail>,
fn wrap_error( error: <Context as HasErrorType>::Error, detail: Detail, ) -> <Context as HasErrorType>::Error
Source§impl<Context, Tag, __Components__, __Delegate__> ProvideType<Context, Tag> for UseDelegate<__Components__>where
__Components__: DelegateComponent<Tag, Delegate = __Delegate__>,
__Delegate__: ProvideType<Context, Tag>,
impl<Context, Tag, __Components__, __Delegate__> ProvideType<Context, Tag> for UseDelegate<__Components__>where
__Components__: DelegateComponent<Tag, Delegate = __Delegate__>,
__Delegate__: ProvideType<Context, Tag>,
type Type = <__Delegate__ as ProvideType<Context, Tag>>::Type
impl<Context, SourceError, __Components__, __Delegate__> IsProviderFor<ErrorRaiserComponent, Context, SourceError> for UseDelegate<__Components__>where
Context: HasErrorType,
__Components__: DelegateComponent<SourceError, Delegate = __Delegate__>,
__Delegate__: IsProviderFor<ErrorRaiserComponent, Context, SourceError> + ErrorRaiser<Context, SourceError>,
impl<Context, Detail, __Components__, __Delegate__> IsProviderFor<ErrorWrapperComponent, Context, Detail> for UseDelegate<__Components__>where
Context: HasErrorType,
__Components__: DelegateComponent<Detail, Delegate = __Delegate__>,
__Delegate__: IsProviderFor<ErrorWrapperComponent, Context, Detail> + ErrorWrapper<Context, Detail>,
impl<Context, Tag, __Components__, __Delegate__> IsProviderFor<TypeComponent, Context, Tag> for UseDelegate<__Components__>where
__Components__: DelegateComponent<Tag, Delegate = __Delegate__>,
__Delegate__: IsProviderFor<TypeComponent, Context, Tag> + ProvideType<Context, Tag>,
Auto Trait Implementations§
impl<Components> Freeze for UseDelegate<Components>
impl<Components> Send for UseDelegate<Components>where
Components: Send,
impl<Components> Sync for UseDelegate<Components>where
Components: Sync,
impl<Components> RefUnwindSafe for UseDelegate<Components>where
Components: RefUnwindSafe,
impl<Components> Unpin for UseDelegate<Components>where
Components: Unpin,
impl<Components> UnwindSafe for UseDelegate<Components>where
Components: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more