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