Enum ssb_keyfile::KeyfileError
[−]
[src]
pub enum KeyfileError { FileError(Error), JsonError(JsonError), UnknownLocation, }
The reasons why reading keys from a file can fail.
Variants
FileError(Error)
An error occured while accessing the file system.
JsonError(JsonError)
The key file did not contain valid (commented) json.
UnknownLocation
Could not determine the location of the key file.
Trait Implementations
impl Debug for KeyfileError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for KeyfileError
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl Error for KeyfileError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
impl From<Error> for KeyfileError
[src]
fn from(err: Error) -> KeyfileError
[src]
Performs the conversion.
impl From<JsonError> for KeyfileError
[src]
fn from(err: JsonError) -> KeyfileError
[src]
Performs the conversion.