Enum one_password::ErrorKind [−]
pub enum ErrorKind { Msg(String), JsonParse(Error), Io(Error), SessionVar(VarError), StdErrUtf8(FromUtf8Error), MissingOpCommand, MissingSessionVariable, MultipleSessionVariables(Vec<String>), GetCommand(String, String, ExitStatus), VersionCommand(String, ExitStatus), // some variants omitted }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
JsonParse(Error)
Failed to parse JSON
Io(Error)
IO error while calling op
command
SessionVar(VarError)
OP session environment variable was not valid UTF-8
StdErrUtf8(FromUtf8Error)
Std error output from op was not valid UTF-8
MissingOpCommand
op command not found in path.
MissingSessionVariable
Could not find any session environment variable.
MultipleSessionVariables(Vec<String>)
More than one session environment variable found.
GetCommand(String, String, ExitStatus)
op get
error
VersionCommand(String, ExitStatus)
op --version
error
Methods
impl ErrorKind
impl ErrorKind
pub fn description(&self) -> &str
pub fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl From<ErrorKind> for Error
impl From<ErrorKind> for Error
impl Debug for ErrorKind
impl Debug for ErrorKind
impl Display for ErrorKind
impl Display for ErrorKind
impl<'a> From<&'a str> for ErrorKind
impl<'a> From<&'a str> for ErrorKind
impl From<String> for ErrorKind
impl From<String> for ErrorKind
impl From<Error> for ErrorKind
impl From<Error> for ErrorKind