Trait garage_api::common_error::OkOrInternalError
source · pub trait OkOrInternalError {
type S;
// Required method
fn ok_or_internal_error<M: AsRef<str>>(
self,
reason: M
) -> Result<Self::S, CommonError>;
}
Expand description
Trait to map an error to an Internal Error code
Required Associated Types§
Required Methods§
fn ok_or_internal_error<M: AsRef<str>>( self, reason: M ) -> Result<Self::S, CommonError>
Object Safety§
This trait is not object safe.