pub enum KeyFileError {
    FileRead(Error),
    Utf8(Utf8Error),
    Json(Error),
    Decode,
}Expand description
The reasons why reading keys from a file can fail.
Variants§
Trait Implementations§
Source§impl Debug for KeyFileError
 
impl Debug for KeyFileError
Source§impl Display for KeyFileError
 
impl Display for KeyFileError
Source§impl Error for KeyFileError
 
impl Error for KeyFileError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
 
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
 
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for KeyFileError
 
impl From<Error> for KeyFileError
Source§impl From<Error> for KeyFileError
 
impl From<Error> for KeyFileError
Auto Trait Implementations§
impl Freeze for KeyFileError
impl !RefUnwindSafe for KeyFileError
impl Send for KeyFileError
impl Sync for KeyFileError
impl Unpin for KeyFileError
impl !UnwindSafe for KeyFileError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more