pub enum ISOError {
Io(Error),
Utf8(Utf8Error),
Utf16,
InvalidFs(&'static str),
ParseInt(ParseIntError),
TryFromInt(TryFromIntError),
ReadSize(usize),
VerboseNom(VerboseError<Vec<u8>>),
}
Expand description
The master error structure.
Variants§
Io(Error)
I/O error while trying to read the filesystem image.
Utf8(Utf8Error)
String value that was expected to fit into a UTF-8 shape, in fact did not. This is not the greatest design decision as nothing in ISO 9660 / ECMA-119 should be encoded in UTF-8.
Utf16
encoding-rs
ran into one or more errors parsing the string. Joliet only.
InvalidFs(&'static str)
The filesystem contained error(s) and could not be parsed.
ParseInt(ParseIntError)
A String
that was supposed to contain a numeric value did not. Currently this error only occurs in the file identifier parsing code.
TryFromInt(TryFromIntError)
An error trying to go from one size of integer to another.
ReadSize(usize)
The buffer or block did not have enough data. Presumably the filesystem is corrupt.
§See Also
VerboseNom(VerboseError<Vec<u8>>)
A nom
parser failed. Most likely the filesystem is either corrupt. This is the verbose
variant. If you don’t need the extra context that nom’s VerboseError
type brings,
disabling the verbose-error
feature will utilize the standard nom error type.
Trait Implementations§
Source§impl Error for ISOError
impl Error for ISOError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<ParseIntError> for ISOError
impl From<ParseIntError> for ISOError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Source§impl From<TryFromIntError> for ISOError
impl From<TryFromIntError> for ISOError
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Auto Trait Implementations§
impl Freeze for ISOError
impl !RefUnwindSafe for ISOError
impl Send for ISOError
impl Sync for ISOError
impl Unpin for ISOError
impl !UnwindSafe for ISOError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more