#[non_exhaustive]pub enum VerifyError {
Io {
path: Option<PathBuf>,
source: Error,
},
UnsupportedPlatform(u16),
InvalidField {
context: &'static str,
},
Crc32Mismatch {
target_offset: u64,
expected: u32,
actual: u32,
},
}Expand description
Failures produced by the verifier (crate::verify and
crate::index::PlanVerifier).
#[non_exhaustive]: per-failure-mode splits (hash-algorithm mismatch,
truncated source) may be added without a SemVer break.
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
An I/O failure while reading a target file.
Fields
§
source: ErrorUnderlying std::io::Error.
UnsupportedPlatform(u16)
SqPack path resolution refused to fall back to a default platform layout.
InvalidField
A plan or verification config violated a structural invariant.
Crc32Mismatch
A region’s observed CRC32 did not match the expected value.
Trait Implementations§
Source§impl Debug for VerifyError
impl Debug for VerifyError
Source§impl Display for VerifyError
impl Display for VerifyError
Source§impl Error for VerifyError
impl Error for VerifyError
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<ApplyError> for VerifyError
impl From<ApplyError> for VerifyError
Source§fn from(err: ApplyError) -> Self
fn from(err: ApplyError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for VerifyError
impl From<Error> for VerifyError
Source§impl From<VerifyError> for Error
impl From<VerifyError> for Error
Source§fn from(source: VerifyError) -> Self
fn from(source: VerifyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VerifyError
impl !RefUnwindSafe for VerifyError
impl Send for VerifyError
impl Sync for VerifyError
impl Unpin for VerifyError
impl UnsafeUnpin for VerifyError
impl !UnwindSafe for VerifyError
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
Source§impl<T> CustomError for T
impl<T> CustomError for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more