IntoPocketError

Trait IntoPocketError 

Source
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§

Source

fn storage_err(self, msg: &str) -> PocketResult<T>

Source

fn entry_err(self, msg: &str) -> PocketResult<T>

Source

fn card_err(self, msg: &str) -> PocketResult<T>

Source

fn hook_err(self, msg: &str) -> PocketResult<T>

Source

fn config_err(self, msg: &str) -> PocketResult<T>

Source

fn search_err(self, msg: &str) -> PocketResult<T>

Source

fn other_err(self, msg: &str) -> PocketResult<T>

Implementations on Foreign Types§

Source§

impl<T, E: Error + Send + Sync + 'static> IntoPocketError<T> for Result<T, E>

Source§

fn storage_err(self, msg: &str) -> PocketResult<T>

Source§

fn entry_err(self, msg: &str) -> PocketResult<T>

Source§

fn card_err(self, msg: &str) -> PocketResult<T>

Source§

fn hook_err(self, msg: &str) -> PocketResult<T>

Source§

fn config_err(self, msg: &str) -> PocketResult<T>

Source§

fn search_err(self, msg: &str) -> PocketResult<T>

Source§

fn other_err(self, msg: &str) -> PocketResult<T>

Implementors§