#[non_exhaustive]pub enum CorsaEvent {
JsonRpcRequestTimedOut {
method: CompactString,
timeout: Duration,
},
JsonRpcOutboundQueueFull,
JsonRpcLocalHandlerPanicked {
method: CompactString,
},
JsonRpcPendingRequestsFailed {
error: CompactString,
count: usize,
},
MsgpackRequestTimedOut {
method: CompactString,
timeout: Duration,
},
MsgpackWorkerQueueFull {
method: CompactString,
},
MsgpackWorkerTerminated {
reason: CompactString,
},
OrchestratorSnapshotEvicted {
key: CompactString,
},
OrchestratorResultEvicted {
key: CompactString,
},
}Expand description
Structured runtime events that embedders can observe.
The enum intentionally focuses on operationally relevant state transitions such as timeouts, queue saturation, and cache eviction. Variants may be added over time as the workspace exposes more subsystems.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
JsonRpcRequestTimedOut
A JSON-RPC request exceeded its configured timeout.
Fields
method: CompactStringJSON-RPC method name that timed out.
JsonRpcOutboundQueueFull
The JSON-RPC writer queue rejected a message because it was full.
JsonRpcLocalHandlerPanicked
A locally registered JSON-RPC handler panicked while processing a peer message.
Fields
method: CompactStringJSON-RPC method name whose local handler panicked.
JsonRpcPendingRequestsFailed
Pending JSON-RPC requests were failed because the transport broke.
Fields
error: CompactStringTransport error propagated to pending callers.
MsgpackRequestTimedOut
A sync msgpack request exceeded its configured timeout.
Fields
method: CompactStringMsgpack API method name that timed out.
MsgpackWorkerQueueFull
The msgpack worker queue rejected a request because it was full.
Fields
method: CompactStringMsgpack API method that could not be queued.
MsgpackWorkerTerminated
The msgpack worker process was explicitly terminated.
Fields
reason: CompactStringHuman-readable termination reason.
OrchestratorSnapshotEvicted
A cached snapshot was evicted to stay within configured limits.
Fields
key: CompactStringCaller-provided snapshot cache key that was evicted.
OrchestratorResultEvicted
A cached result was evicted to stay within configured limits.
Fields
key: CompactStringCaller-provided result cache key that was evicted.
Trait Implementations§
Source§impl Clone for CorsaEvent
impl Clone for CorsaEvent
Source§fn clone(&self) -> CorsaEvent
fn clone(&self) -> CorsaEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CorsaEvent
impl Debug for CorsaEvent
Source§impl PartialEq for CorsaEvent
impl PartialEq for CorsaEvent
Source§fn eq(&self, other: &CorsaEvent) -> bool
fn eq(&self, other: &CorsaEvent) -> bool
self and other values to be equal, and is used by ==.