pub enum ParserSupervisorError {
Show 29 variants
UnsupportedContainment {
os: &'static str,
architecture: &'static str,
},
PackPath {
path: PathBuf,
source: Error,
},
InvalidPackPath {
path: PathBuf,
reason: &'static str,
},
ArtifactRead {
path: PathBuf,
source: Error,
},
LinuxLaunchAuthority {
role: &'static str,
source: Error,
},
ArtifactFileTooLarge {
path: PathBuf,
actual: u64,
maximum: u64,
},
ArtifactManifestJson {
source: Error,
},
ManifestValidation {
source: OptionalParserPackManifestError,
},
PayloadMismatch {
path: PathBuf,
reason: &'static str,
},
GrammarNotAccepted {
language_id: String,
},
FixtureExpectationMismatch {
language_id: String,
case_name: String,
actual: bool,
expected: bool,
},
InvalidMemoryLimits {
process_bytes: u64,
process_tree_bytes: u64,
},
MemoryProbeDidNotBreach {
process_bytes: u64,
},
Protocol {
source: ParserProtocolError,
},
EntropyUnavailable,
Spawn {
program: PathBuf,
source: Error,
},
MissingPipe {
stream: &'static str,
},
InvalidAdmission,
IoThread {
phase: &'static str,
message: String,
},
Cancelled {
phase: &'static str,
},
DeadlineExceeded {
phase: &'static str,
},
NoProgress {
phase: &'static str,
},
ChildExited {
phase: &'static str,
code: Option<i32>,
},
ResidentMemoryLimitExceeded {
phase: &'static str,
accounting: ParserMemoryAccountingKind,
observed_bytes: u64,
maximum_bytes: u64,
observation_interval_millis: u64,
},
ResidentMemoryObservationFailed {
phase: &'static str,
accounting: ParserMemoryAccountingKind,
message: String,
},
WorkerFailure {
code: ParserFailureCode,
},
RequestIdentityExhausted,
Cleanup {
message: String,
},
OperationAndCleanup {
operation: Box<Self>,
cleanup: Box<Self>,
},
}Expand description
Failure while validating, running, or cleaning up the optional parser supervisor.
Variants§
UnsupportedContainment
The current host has no accepted optional-pack containment adapter.
Fields
PackPath
A required pack path could not be canonicalized or inspected.
InvalidPackPath
A required pack path violated the immutable artifact boundary.
ArtifactRead
One bounded artifact file could not be read.
LinuxLaunchAuthority
Linux could not construct one immutable launch payload.
ArtifactFileTooLarge
One artifact file exceeded its declared byte ceiling.
ArtifactManifestJson
The strict artifact manifest could not be decoded.
ManifestValidation
A logical or artifact manifest invariant failed.
Fields
source: OptionalParserPackManifestErrorTyped manifest failure.
PayloadMismatch
An artifact payload did not match its immutable manifest row.
GrammarNotAccepted
A requested grammar is absent from the accepted capability manifest.
FixtureExpectationMismatch
One accepted fixture produced the opposite root-error state.
Fields
InvalidMemoryLimits
An internal release probe requested invalid worker or process-tree ceilings.
Fields
MemoryProbeDidNotBreach
The exact worker completed under a deliberately reduced release-probe ceiling.
Protocol
A parser protocol invariant failed.
Fields
source: ParserProtocolErrorTyped protocol failure.
Operating-system entropy was unavailable for a fresh worker session.
Spawn
The exact worker or containment broker could not be started.
MissingPipe
A required child protocol pipe was not created.
InvalidAdmission
The Windows broker did not emit the exact admission record.
IoThread
A bounded I/O thread failed.
Cancelled
The caller requested cooperative cancellation.
DeadlineExceeded
The caller-owned absolute deadline elapsed.
NoProgress
No meaningful progress occurred within the caller limit.
ChildExited
The direct child exited before completing its protocol operation.
Fields
ResidentMemoryLimitExceeded
Linux resident memory reached its configured ceiling and the worker group was terminated.
Fields
accounting: ParserMemoryAccountingKindActive Linux accounting path.
ResidentMemoryObservationFailed
Linux resident-memory accounting became unreadable while the worker was live.
Fields
accounting: ParserMemoryAccountingKindAccounting path that failed closed.
WorkerFailure
The worker returned an identity-validated closed failure.
Fields
code: ParserFailureCodeClosed worker failure code.
RequestIdentityExhausted
The session-local request identity space was exhausted.
Cleanup
Child-tree termination, pipe draining, reaping, or thread joining failed.
OperationAndCleanup
An operation failed and its mandatory cleanup also failed.
Implementations§
Source§impl ParserSupervisorError
impl ParserSupervisorError
Sourcepub const fn has_mandatory_cleanup_failure(&self) -> bool
pub const fn has_mandatory_cleanup_failure(&self) -> bool
Return whether mandatory process, pipe, reap, or thread cleanup failed.
Self::OperationAndCleanup is itself a cleanup failure even when its
operation or cleanup branch contains another nested combined failure.