ErrorExt

Trait ErrorExt 

Source
pub trait ErrorExt {
    // Required methods
    fn is_secret_not_found(&self) -> bool;
    fn is_permission_denied(&self) -> bool;
    fn is_forbidden(&self) -> bool;
}
Expand description

Extension functions for error types.

Required Methods§

Source

fn is_secret_not_found(&self) -> bool

Whether this is a secret not found error.

Source

fn is_permission_denied(&self) -> bool

Whether this is a permission denied error.

Source

fn is_forbidden(&self) -> bool

Whether authentication is required.

Implementors§