Enum webc::v2::read::DirEntryError
source · #[non_exhaustive]
pub enum DirEntryError {
Header(VolumeHeaderError),
FileOutOfBounds {
start_offset: usize,
end_offset: usize,
data_section_length: usize,
},
}
Expand description
Errors that may occur while parsing a DirEntry
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Header(VolumeHeaderError)
FileOutOfBounds
Trait Implementations§
source§impl Clone for DirEntryError
impl Clone for DirEntryError
source§fn clone(&self) -> DirEntryError
fn clone(&self) -> DirEntryError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DirEntryError
impl Debug for DirEntryError
source§impl Display for DirEntryError
impl Display for DirEntryError
source§impl Error for DirEntryError
impl Error for DirEntryError
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<VolumeHeaderError> for DirEntryError
impl From<VolumeHeaderError> for DirEntryError
source§fn from(source: VolumeHeaderError) -> Self
fn from(source: VolumeHeaderError) -> Self
Converts to this type from the input type.
source§impl PartialEq<DirEntryError> for DirEntryError
impl PartialEq<DirEntryError> for DirEntryError
source§fn eq(&self, other: &DirEntryError) -> bool
fn eq(&self, other: &DirEntryError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.