pub enum IpcError {
Io(Error),
Codec(Error),
Unauthorized(String),
UnsupportedPlatform,
}Expand description
Errors raised while framing, transporting, or authenticating IPC messages.
PRODUCT.md A.3/A.4: transport + peer-credential failures are distinct from
application-level failures (which travel in-band as IpcResponse::Err).
Variants§
Io(Error)
Underlying socket / framing I/O failed.
Codec(Error)
A frame could not be (de)serialized to/from JSON.
The connecting peer failed the SO_PEERCRED/LOCAL_PEERCRED check
(PRODUCT.md A.3 - uid/pid not in the allowed set).
UnsupportedPlatform
Peer-credential introspection is not implemented for this OS.
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 !RefUnwindSafe for IpcError
impl !UnwindSafe for IpcError
impl Freeze for IpcError
impl Send for IpcError
impl Sync for IpcError
impl Unpin for IpcError
impl UnsafeUnpin 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