pub trait IntoPocketError<T> {
// Required methods
fn storage_err(self, msg: &str) -> PocketResult<T>;
fn entry_err(self, msg: &str) -> PocketResult<T>;
fn card_err(self, msg: &str) -> PocketResult<T>;
fn hook_err(self, msg: &str) -> PocketResult<T>;
fn config_err(self, msg: &str) -> PocketResult<T>;
fn search_err(self, msg: &str) -> PocketResult<T>;
fn other_err(self, msg: &str) -> PocketResult<T>;
}Expand description
Helper trait for converting errors to PocketError
Required Methods§
fn storage_err(self, msg: &str) -> PocketResult<T>
fn entry_err(self, msg: &str) -> PocketResult<T>
fn card_err(self, msg: &str) -> PocketResult<T>
fn hook_err(self, msg: &str) -> PocketResult<T>
fn config_err(self, msg: &str) -> PocketResult<T>
fn search_err(self, msg: &str) -> PocketResult<T>
fn other_err(self, msg: &str) -> PocketResult<T>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".