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