pub enum InvalidFileError {
Io(Error),
FileExists,
UnencodableContent(UnencodableByteError),
CorruptedEncoding,
Utf8(Utf8Error),
}
Expand description
The error returned by the encoding and decoding functions that interact with the file system.
Variants§
Trait Implementations§
source§impl Debug for InvalidFileError
impl Debug for InvalidFileError
source§impl Display for InvalidFileError
impl Display for InvalidFileError
source§impl Error for InvalidFileError
impl Error for InvalidFileError
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 InvalidFileError
impl From<Error> for InvalidFileError
source§impl From<UnencodableByteError> for InvalidFileError
impl From<UnencodableByteError> for InvalidFileError
source§fn from(err: UnencodableByteError) -> Self
fn from(err: UnencodableByteError) -> Self
Converts to this type from the input type.