pub enum ProcwireError {
Io(Error),
Json(Error),
MsgPackEncode(Error),
MsgPackDecode(Error),
Protocol(String),
HandlerNotFound(u16),
ConnectionClosed,
BackpressureTimeout,
}Expand description
Main error type for all procwire operations.
Variants§
Io(Error)
I/O error during pipe/socket operations.
Json(Error)
JSON serialization/deserialization error (control plane only).
MsgPackEncode(Error)
MsgPack serialization/deserialization error.
MsgPackDecode(Error)
MsgPack deserialization error.
Protocol(String)
Protocol error (invalid frame, wrong flags, etc.).
HandlerNotFound(u16)
Handler not found for the given method ID.
ConnectionClosed
Connection closed unexpectedly.
BackpressureTimeout
Backpressure timeout - write buffer full.
Trait Implementations§
Source§impl Debug for ProcwireError
impl Debug for ProcwireError
Source§impl Display for ProcwireError
impl Display for ProcwireError
Source§impl Error for ProcwireError
impl Error for ProcwireError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for ProcwireError
impl From<Error> for ProcwireError
Source§impl From<Error> for ProcwireError
impl From<Error> for ProcwireError
Source§impl From<Error> for ProcwireError
impl From<Error> for ProcwireError
Auto Trait Implementations§
impl Freeze for ProcwireError
impl !RefUnwindSafe for ProcwireError
impl Send for ProcwireError
impl Sync for ProcwireError
impl Unpin for ProcwireError
impl !UnwindSafe for ProcwireError
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