#[non_exhaustive]pub enum ApplyError {
Parse(ParseError),
Io {
path: Option<PathBuf>,
source: Error,
},
UnsupportedPlatform(u16),
Cancelled,
SchemaVersionMismatch {
kind: &'static str,
found: SchemaVersion,
expected: SchemaVersion,
},
}Expand description
Failures produced by the apply layer (crate::apply).
Wraps ParseError because the sequential apply driver
(crate::ApplyConfig::apply_patch) parses chunks as it applies them.
#[non_exhaustive]: apply-side failure modes (new I/O kinds surfaced
as their own variants, new cancellation reasons) accumulate over time.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Parse(ParseError)
A parse failure surfaced while the apply driver was pulling chunks.
Io
An I/O operation against the install root failed.
path carries the file or directory the operation was targeting when
it has been threaded through; it is None for operations whose path
context is not readily available (e.g. raw ? propagation from a
helper that does not know the path).
Fields
source: ErrorUnderlying std::io::Error.
UnsupportedPlatform(u16)
SqPack path resolution refused to fall back to a default platform layout.
Cancelled
Apply was cancelled by an crate::ApplyObserver.
SchemaVersionMismatch
A persisted record’s schema_version does not match this build.
Implementations§
Source§impl ApplyError
impl ApplyError
Trait Implementations§
Source§impl Debug for ApplyError
impl Debug for ApplyError
Source§impl Display for ApplyError
impl Display for ApplyError
Source§impl Error for ApplyError
impl Error for ApplyError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ApplyError> for Error
impl From<ApplyError> for Error
Source§fn from(source: ApplyError) -> Self
fn from(source: ApplyError) -> Self
Source§impl From<ApplyError> for IndexError
impl From<ApplyError> for IndexError
Source§fn from(err: ApplyError) -> Self
fn from(err: ApplyError) -> Self
Source§impl From<ApplyError> for VerifyError
impl From<ApplyError> for VerifyError
Source§fn from(err: ApplyError) -> Self
fn from(err: ApplyError) -> Self
Source§impl From<Error> for ApplyError
impl From<Error> for ApplyError
Source§impl From<ParseError> for ApplyError
impl From<ParseError> for ApplyError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Auto Trait Implementations§
impl Freeze for ApplyError
impl !RefUnwindSafe for ApplyError
impl Send for ApplyError
impl Sync for ApplyError
impl Unpin for ApplyError
impl UnsafeUnpin for ApplyError
impl !UnwindSafe for ApplyError
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
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>
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>
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