pub trait FromInternalErrorCode: Sized {
// Required method
fn into_result(self) -> Result<(), InternalError>;
}
Expand description
A helper trait for going from an InternalError
to a Result
.
Required Methods§
Sourcefn into_result(self) -> Result<(), InternalError>
fn into_result(self) -> Result<(), InternalError>
Make the conversion.
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.