Enum webc::v2::read::OwnedReaderError
source · #[non_exhaustive]
pub enum OwnedReaderError {
Show 13 variants
Io(Error),
InvalidMagic(Magic),
UnsupportedVersion(Version),
UnexpectedSection {
expected_tag: Tag,
actual_tag: u8,
offset: usize,
},
IndexOutOfBounds {
offset: usize,
bytes_available: usize,
},
Index(Error),
Manifest(Error),
Section {
error: SectionError,
tag: u8,
data: OwnedBuffer,
},
IncorrectSection(SectionConversionError),
NoSuchVolume {
name: String,
},
Atoms(DirEntryError),
Detect(DetectError),
Mmap(MmapError),
}
Expand description
Errors that may be emitted by OwnedReader
.
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.
Io(Error)
InvalidMagic(Magic)
UnsupportedVersion(Version)
UnexpectedSection
IndexOutOfBounds
Index(Error)
Manifest(Error)
Section
IncorrectSection(SectionConversionError)
NoSuchVolume
Atoms(DirEntryError)
Detect(DetectError)
Mmap(MmapError)
Trait Implementations§
source§impl Debug for OwnedReaderError
impl Debug for OwnedReaderError
source§impl Display for OwnedReaderError
impl Display for OwnedReaderError
source§impl Error for OwnedReaderError
impl Error for OwnedReaderError
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<DetectError> for OwnedReaderError
impl From<DetectError> for OwnedReaderError
source§fn from(source: DetectError) -> Self
fn from(source: DetectError) -> Self
Converts to this type from the input type.
source§impl From<Error> for OwnedReaderError
impl From<Error> for OwnedReaderError
source§impl From<MmapError> for OwnedReaderError
impl From<MmapError> for OwnedReaderError
source§impl From<OwnedReaderError> for ContainerError
impl From<OwnedReaderError> for ContainerError
source§fn from(source: OwnedReaderError) -> Self
fn from(source: OwnedReaderError) -> Self
Converts to this type from the input type.