pub struct CoreError {
pub kind: CoreErrorKind,
pub message: String,
pub offending_type: Option<String>,
pub init_failure: Option<InitFailureReason>,
pub workload_failure: Option<WorkloadFailure>,
}Expand description
Payload for core.error messages.
Sent when a peer can identify a recoverable protocol error for a specific
correlation ID. Unrecoverable frame-level errors, such as stream
desynchronization or impossible frame lengths, should close the transport
instead. Before core.ready, agentd may send InitializationFailed with
id=0 and the terminal flag. The host saves this fatal startup error before sending
core.init.ack with failure=true, allowing the guest to exit.
Fields§
§kind: CoreErrorKindMachine-readable error kind.
message: StringHuman-readable diagnostic message.
offending_type: Option<String>Wire message type involved in the error, when it could be determined.
init_failure: Option<InitFailureReason>Typed reason for a fatal guest initialization failure, when available.
workload_failure: Option<WorkloadFailure>Attempt-scoped freezer disposition. Absence is ambiguous, not proof that no work froze.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CoreError
impl<'de> Deserialize<'de> for CoreError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CoreError
impl RefUnwindSafe for CoreError
impl Send for CoreError
impl Sync for CoreError
impl Unpin for CoreError
impl UnsafeUnpin for CoreError
impl UnwindSafe for CoreError
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