pub enum ParserProtocolError {
Show 18 variants
HeaderTooShort {
actual: usize,
expected: usize,
},
InvalidFrameMarker,
UnsupportedVersion {
actual: u8,
expected: u8,
},
UnknownFrameKind {
actual: u8,
},
FramePayloadTooLarge {
kind: ParserFrameKind,
actual: u32,
maximum: u32,
},
TruncatedFrame {
declared: u32,
available: usize,
},
TrailingFrameBytes {
declared: u32,
actual: usize,
},
UnexpectedFrameKind {
kind: ParserFrameKind,
},
InvalidControlJson {
kind: ParserFrameKind,
source: Error,
},
ControlSerialization {
kind: ParserFrameKind,
source: Error,
},
InvalidField {
field: &'static str,
reason: &'static str,
},
SourceLengthMismatch {
expected: u32,
actual: usize,
},
SourceDigestMismatch,
ReadyIdentityMismatch {
field: &'static str,
},
RequestIdentityMismatch {
field: &'static str,
},
ResponseIdentityMismatch {
field: &'static str,
},
RequestLimitExceeded {
field: &'static str,
actual: u32,
maximum: u32,
},
ProgressRegression {
field: &'static str,
},
}Expand description
Failure while framing, decoding, or validating parser-worker traffic.
Variants§
HeaderTooShort
Fewer than the fixed header bytes were supplied.
InvalidFrameMarker
The fixed protocol marker did not match.
UnsupportedVersion
The frame or control payload uses another protocol version.
UnknownFrameKind
A frame kind is outside the closed protocol.
FramePayloadTooLarge
A declared payload exceeds its kind-specific ceiling.
Fields
kind: ParserFrameKindClosed frame kind.
TruncatedFrame
The bytes stop before the declared payload ends.
TrailingFrameBytes
Bytes remain after the one declared frame.
UnexpectedFrameKind
A raw-source frame was used where a control frame was required.
Fields
kind: ParserFrameKindUnexpected closed kind.
InvalidControlJson
Strict JSON decoding failed.
Fields
kind: ParserFrameKindExpected control kind.
ControlSerialization
Control serialization failed.
InvalidField
A typed field violated its local representation contract.
SourceLengthMismatch
Raw source length differs from the authenticated request identity.
SourceDigestMismatch
Raw source content differs from the authenticated request identity.
ReadyIdentityMismatch
A containment-ready frame belongs to another launch or artifact.
RequestIdentityMismatch
A request belongs to another supervised worker session or artifact.
ResponseIdentityMismatch
A response belongs to another request, artifact, language, or source.
RequestLimitExceeded
A response exceeds a request-specific count or output limit.
ProgressRegression
Progress sequencing or monotonic state regressed.