Trait ErrorRaiser

Source
pub trait ErrorRaiser<Context, SourceError>: IsProviderFor<ErrorRaiserComponent, Context, SourceError>
where Context: HasErrorType,
{ // Required method fn raise_error(error: SourceError) -> Context::Error; }
Expand description

The CanRaiseError trait is used to raise any concrete error type into an abstract error provided by HasErrorType.

Required Methods§

Source

fn raise_error(error: SourceError) -> Context::Error

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

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

The CanRaiseError trait is used to raise any concrete error type into an abstract error provided by HasErrorType.

Source§

fn raise_error(error: SourceError) -> Context::Error

Source§

impl<Context, SourceError, __Components__, __Delegate__> ErrorRaiser<Context, SourceError> for UseDelegate<__Components__>
where Context: HasErrorType, __Components__: DelegateComponent<SourceError, Delegate = __Delegate__>, __Delegate__: ErrorRaiser<Context, SourceError>,

The CanRaiseError trait is used to raise any concrete error type into an abstract error provided by HasErrorType.

Source§

fn raise_error(error: SourceError) -> Context::Error

Implementors§

Source§

impl<Component, Context, SourceError> ErrorRaiser<Context, SourceError> for Component
where Context: HasErrorType, Component: DelegateComponent<ErrorRaiserComponent> + IsProviderFor<ErrorRaiserComponent, Context, SourceError>, Component::Delegate: ErrorRaiser<Context, SourceError>,

The CanRaiseError trait is used to raise any concrete error type into an abstract error provided by HasErrorType.