pub enum MacosBridgeError {
InvalidIdentifier {
reason: &'static str,
},
SystemContainerIsNotItem,
InvalidItemVersion {
reason: &'static str,
},
InvalidBackendResponse {
reason: &'static str,
},
UnsupportedSystemContainer,
StaleSessionGeneration {
expected: u64,
actual: u64,
},
SessionNotAccepting {
state: SessionState,
},
InvalidSessionTransition {
from: SessionState,
to: SessionState,
},
ActiveRequestCountOverflow,
InvalidFfiInput {
reason: &'static str,
},
FfiPanic,
Backend(CloudBackendError),
}Expand description
Errors produced by identifier, enumeration, session, and FFI mechanics.
Variants§
InvalidIdentifier
A persistent item identifier used an unsupported or malformed envelope.
SystemContainerIsNotItem
A system container was used where a product item was required.
InvalidItemVersion
An item version cannot represent one or both revision values.
InvalidBackendResponse
A backend item violated its stable identity, parent, name, or content contract.
UnsupportedSystemContainer
A page request targeted a system container unsupported by this batch.
StaleSessionGeneration
A callback generation did not match the active extension generation.
SessionNotAccepting
The extension session rejected new work.
Fields
state: SessionStateCurrent lifecycle state.
InvalidSessionTransition
A lifecycle transition occurred out of order.
ActiveRequestCountOverflow
Accepted request count exceeded the host address space.
InvalidFfiInput
An FFI pointer/length pair or UTF-8 input was invalid.
FfiPanic
A panic was contained at the C ABI boundary.
Backend(CloudBackendError)
The product-owned backend reported a classified failure.
Implementations§
Source§impl MacosBridgeError
impl MacosBridgeError
Sourcepub const fn error_code(&self) -> MacosErrorCode
pub const fn error_code(&self) -> MacosErrorCode
Returns the native-facing portable classification.