pub enum UndecodableFileError {
Io(Error),
DecodesToInvalidUnicode(FromUtf8Error),
}
Expand description
The error returned by the decoding functions that interact with the file system.
Variants§
Io(Error)
DecodesToInvalidUnicode(FromUtf8Error)
Trait Implementations§
source§impl Debug for UndecodableFileError
impl Debug for UndecodableFileError
source§impl Display for UndecodableFileError
impl Display for UndecodableFileError
source§impl Error for UndecodableFileError
impl Error for UndecodableFileError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 UndecodableFileError
impl From<Error> for UndecodableFileError
source§impl From<FromUtf8Error> for UndecodableFileError
impl From<FromUtf8Error> for UndecodableFileError
source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for UndecodableFileError
impl Send for UndecodableFileError
impl Sync for UndecodableFileError
impl Unpin for UndecodableFileError
impl !UnwindSafe for UndecodableFileError
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