pub enum OptionalParserPackLifecycleError {
UnsupportedContainment {
os: &'static str,
architecture: &'static str,
},
StorageRootUnavailable,
Busy {
path: PathBuf,
},
Io {
operation: &'static str,
path: PathBuf,
source: Error,
},
InvalidData {
reason: String,
},
Manifest(OptionalParserPackManifestError),
Supervisor(ParserSupervisorError),
Json(Error),
CleanupIncomplete {
message: String,
},
OperationAndCleanup {
operation: Box<Self>,
cleanup: Box<Self>,
},
}Expand description
Failure while inspecting or changing the local optional-parser lifecycle.
Variants§
UnsupportedContainment
This host has no accepted parser containment adapter.
Fields
A required user-owned storage location could not be derived.
Busy
Another process currently holds an incompatible parser-pack lifecycle lease.
Io
One filesystem operation failed.
Fields
InvalidData
An archive or lifecycle record violated a closed contract.
Manifest(OptionalParserPackManifestError)
A logical or artifact manifest failed validation.
Supervisor(ParserSupervisorError)
A verified artifact failed supervisor admission.
Json(Error)
Strict JSON decoding or encoding failed.
CleanupIncomplete
One or more exact slot cleanup attempts failed after all slots were attempted.
OperationAndCleanup
A lifecycle operation failed and mandatory child cleanup also failed.
Implementations§
Source§impl OptionalParserPackLifecycleError
impl OptionalParserPackLifecycleError
Sourcepub const fn is_unsupported_containment(&self) -> bool
pub const fn is_unsupported_containment(&self) -> bool
Return whether this failure is the typed unsupported-containment boundary.
Trait Implementations§
Source§impl Error for OptionalParserPackLifecycleError
impl Error for OptionalParserPackLifecycleError
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<Error> for OptionalParserPackLifecycleError
impl From<Error> for OptionalParserPackLifecycleError
Source§impl From<OptionalParserPackManifestError> for OptionalParserPackLifecycleError
impl From<OptionalParserPackManifestError> for OptionalParserPackLifecycleError
Source§impl From<ParserSupervisorError> for OptionalParserPackLifecycleError
impl From<ParserSupervisorError> for OptionalParserPackLifecycleError
Source§fn from(source: ParserSupervisorError) -> Self
fn from(source: ParserSupervisorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OptionalParserPackLifecycleError
impl !RefUnwindSafe for OptionalParserPackLifecycleError
impl Send for OptionalParserPackLifecycleError
impl Sync for OptionalParserPackLifecycleError
impl Unpin for OptionalParserPackLifecycleError
impl !UnwindSafe for OptionalParserPackLifecycleError
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