#[non_exhaustive]pub enum PackStreamScanError {
BadSignature,
UnsupportedVersion(u32),
InvalidEntryType(u8),
HeaderTooLong,
Inflate(u64),
}Expand description
Why a pack stream could not be scanned.
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.
BadSignature
The stream does not begin with the PACK signature.
UnsupportedVersion(u32)
The pack header names a version other than 2 or 3.
InvalidEntryType(u8)
An entry header carries a type code that no pack entry uses.
HeaderTooLong
An entry’s size or delta offset varint runs past any valid length.
Inflate(u64)
An entry’s compressed data is not a valid zlib stream (or the pack uses a different hash length than the scanner was created with).
Trait Implementations§
Source§impl Clone for PackStreamScanError
impl Clone for PackStreamScanError
Source§impl Debug for PackStreamScanError
impl Debug for PackStreamScanError
Source§impl Display for PackStreamScanError
impl Display for PackStreamScanError
impl Eq for PackStreamScanError
Source§impl Error for PackStreamScanError
impl Error for PackStreamScanError
1.30.0 · 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<PackStreamScanError> for UnpackError
impl From<PackStreamScanError> for UnpackError
Source§fn from(source: PackStreamScanError) -> Self
fn from(source: PackStreamScanError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PackStreamScanError
impl PartialEq for PackStreamScanError
impl StructuralPartialEq for PackStreamScanError
Auto Trait Implementations§
impl Freeze for PackStreamScanError
impl RefUnwindSafe for PackStreamScanError
impl Send for PackStreamScanError
impl Sync for PackStreamScanError
impl Unpin for PackStreamScanError
impl UnsafeUnpin for PackStreamScanError
impl UnwindSafe for PackStreamScanError
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