pub enum ErrorCategory {
HandlerPanic,
HandlerError,
SignalingFailure,
TransportFailure,
DataStreamDeliveryUncertain,
}Expand description
Coarse fault-domain classification for ErrorEvent.
Mirrors the top-level protocol actr_protocol::ErrorKind but is
specialised for the dispatch boundary — callers want to distinguish
“user code blew up” (HandlerPanic / HandlerError) from “the plumbing
under them failed” (SignalingFailure / TransportFailure).
Variants§
HandlerPanic
User handler code panicked. source will typically be a
ActrError::DecodeFailure wrapping the panic message.
HandlerError
User handler returned Err normally. source is the handler’s
own ActrError value.
SignalingFailure
Signaling layer failure (AIS registration, reconnect, credential verification).
TransportFailure
Transport layer failure: WebSocket / WebRTC connection errors, lane / mpsc plumbing faults.
DataStreamDeliveryUncertain
A send_data_stream was active when the WebRTC/DataChannel path was
interrupted. Delivery is uncertain; the framework has not confirmed
loss or performed resume.
Trait Implementations§
Source§impl Clone for ErrorCategory
impl Clone for ErrorCategory
Source§fn clone(&self) -> ErrorCategory
fn clone(&self) -> ErrorCategory
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ErrorCategory
Source§impl Debug for ErrorCategory
impl Debug for ErrorCategory
impl Eq for ErrorCategory
Source§impl PartialEq for ErrorCategory
impl PartialEq for ErrorCategory
Source§fn eq(&self, other: &ErrorCategory) -> bool
fn eq(&self, other: &ErrorCategory) -> bool
self and other values to be equal, and is used by ==.