pub trait MapError<T> {
// Required method
fn map_to_cache_error(self, message: &str) -> Result<T, CacheError>;
}Required Methods§
fn map_to_cache_error(self, message: &str) -> Result<T, CacheError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".