Enum webc::v2::read::VolumeHeaderError
source · #[non_exhaustive]
pub enum VolumeHeaderError {
NotFound,
AccessOutOfBounds {
offset: usize,
header_length: usize,
},
InvalidFilename {
error: Utf8Error,
filename: Vec<u8>,
},
UnsupportedHeaderEntry {
tag: Tag,
},
UnknownTag {
tag: u8,
},
NotADirectory,
}
Expand description
Errors that may occur while reading a volume header.
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.
NotFound
The item wasn’t found.
AccessOutOfBounds
Tried to access something outside of the volume header.
InvalidFilename
A filename wasn’t valid UTF-8.
UnsupportedHeaderEntry
Encountered an entry with a tag that isn’t supported.
UnknownTag
Encountered a Tag
with an known value.
NotADirectory
Found a directory when one wasn’t expected (e.g. when looking up a file’s data).
Trait Implementations§
source§impl Clone for VolumeHeaderError
impl Clone for VolumeHeaderError
source§fn clone(&self) -> VolumeHeaderError
fn clone(&self) -> VolumeHeaderError
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 VolumeHeaderError
impl Debug for VolumeHeaderError
source§impl Display for VolumeHeaderError
impl Display for VolumeHeaderError
source§impl Error for VolumeHeaderError
impl Error for VolumeHeaderError
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 From<VolumeHeaderError> for LookupError
impl From<VolumeHeaderError> for LookupError
source§fn from(source: VolumeHeaderError) -> Self
fn from(source: VolumeHeaderError) -> Self
Converts to this type from the input type.
source§impl PartialEq<VolumeHeaderError> for VolumeHeaderError
impl PartialEq<VolumeHeaderError> for VolumeHeaderError
source§fn eq(&self, other: &VolumeHeaderError) -> bool
fn eq(&self, other: &VolumeHeaderError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VolumeHeaderError
impl StructuralEq for VolumeHeaderError
impl StructuralPartialEq for VolumeHeaderError
Auto Trait Implementations§
impl RefUnwindSafe for VolumeHeaderError
impl Send for VolumeHeaderError
impl Sync for VolumeHeaderError
impl Unpin for VolumeHeaderError
impl UnwindSafe for VolumeHeaderError
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.