pub enum ConnectionFileError {
MissingParent {
path: PathBuf,
},
MissingFileName {
path: PathBuf,
},
Io {
op: &'static str,
path: PathBuf,
source: Error,
},
JsonRead {
path: PathBuf,
source: Error,
},
JsonWrite {
path: PathBuf,
source: Error,
},
Random(Error),
UnsupportedSchema {
schema: u32,
supported: u32,
},
Invalid {
reason: String,
},
KeyTooShort {
len: usize,
min: usize,
},
InsecurePermissions {
path: PathBuf,
mode: u32,
},
}Variants§
MissingParent
MissingFileName
Io
JsonRead
JsonWrite
Random(Error)
UnsupportedSchema
Invalid
KeyTooShort
InsecurePermissions
Trait Implementations§
Source§impl Debug for ConnectionFileError
impl Debug for ConnectionFileError
Source§impl Display for ConnectionFileError
impl Display for ConnectionFileError
Source§impl Error for ConnectionFileError
impl Error for ConnectionFileError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for ConnectionFileError
impl !UnwindSafe for ConnectionFileError
impl Freeze for ConnectionFileError
impl Send for ConnectionFileError
impl Sync for ConnectionFileError
impl Unpin for ConnectionFileError
impl UnsafeUnpin for ConnectionFileError
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