pub enum TrustedRootIoError {
Read {
path: PathBuf,
source: Error,
},
Parse {
path: PathBuf,
source: TrustedRootParseError,
},
Serialize {
path: PathBuf,
source: Error,
},
Write {
path: PathBuf,
source: Error,
},
}Expand description
Errors produced when reading or writing a cached trust root.
Variants§
Read
Cache file could not be read off disk.
Parse
Cache file existed but did not parse.
Fields
§
source: TrustedRootParseErrorUnderlying parse failure.
Serialize
Cache file could not be serialised before write.
Fields
Write
Cache file could not be written to disk.
Trait Implementations§
Source§impl Debug for TrustedRootIoError
impl Debug for TrustedRootIoError
Source§impl Display for TrustedRootIoError
impl Display for TrustedRootIoError
Source§impl Error for TrustedRootIoError
impl Error for TrustedRootIoError
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 Freeze for TrustedRootIoError
impl !RefUnwindSafe for TrustedRootIoError
impl Send for TrustedRootIoError
impl Sync for TrustedRootIoError
impl Unpin for TrustedRootIoError
impl UnsafeUnpin for TrustedRootIoError
impl !UnwindSafe for TrustedRootIoError
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