pub enum IpcError {
Connection(String),
Serialization(String),
Framing(String),
Timeout(String),
InvalidMessage(String),
Handler(String),
Io(Error),
Channel(String),
ModuleNotFound(String),
Shutdown,
}Expand description
Errors that can occur during IPC operations.
Variants§
Connection(String)
Connection failed or was lost
Serialization(String)
Failed to serialize/deserialize message
Framing(String)
Message framing error (invalid length, corrupted data)
Timeout(String)
Timeout waiting for response
InvalidMessage(String)
Invalid message type or format
Handler(String)
Handler returned an error
Io(Error)
IO error from underlying transport
Channel(String)
Channel closed or send/receive failed
ModuleNotFound(String)
Module not found or not registered
Shutdown
Server is shutting down
Trait Implementations§
Source§impl Error for IpcError
impl Error for IpcError
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()
Auto Trait Implementations§
impl Freeze for IpcError
impl !RefUnwindSafe for IpcError
impl Send for IpcError
impl Sync for IpcError
impl Unpin for IpcError
impl !UnwindSafe for IpcError
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