CanRaiseError

Trait CanRaiseError 

Source
pub trait CanRaiseError<SourceError>: HasErrorType {
    // Required method
    fn raise_error(error: SourceError) -> Self::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) -> Self::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.

Implementors§

Source§

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

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