Enum webc::v2::read::OwnedReaderError
source · #[non_exhaustive]pub enum OwnedReaderError {
Show 14 variants
Io(Error),
InvalidMagic(Magic),
UnsupportedVersion(Version),
UnexpectedSection {
expected_tag: Tag,
actual_tag: u8,
offset: usize,
},
IndexOutOfBounds {
offset: usize,
bytes_available: usize,
},
Index(Error<Error>),
Manifest(Error<Error>),
Section {
error: SectionError,
tag: u8,
data: OwnedBuffer,
},
IncorrectSection(SectionConversionError),
NoSuchVolume {
name: String,
},
Atoms(DirEntryError),
Detect(DetectError),
Mmap(MmapError),
IntegerConversion(TryFromIntError),
}Available on crate feature
v2 only.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<Error>)
Manifest(Error<Error>)
Section
IncorrectSection(SectionConversionError)
NoSuchVolume
Atoms(DirEntryError)
Detect(DetectError)
Mmap(MmapError)
IntegerConversion(TryFromIntError)
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)>
Returns 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.
source§impl From<TryFromIntError> for OwnedReaderError
impl From<TryFromIntError> for OwnedReaderError
source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for OwnedReaderError
impl !RefUnwindSafe for OwnedReaderError
impl Send for OwnedReaderError
impl Sync for OwnedReaderError
impl Unpin for OwnedReaderError
impl !UnwindSafe for OwnedReaderError
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
Mutably borrows from an owned value. Read more