pub enum ApiError {
Transport(TransportError),
Marshal(MarshalError),
Io(Error),
Map(MapError),
WrongFamily {
wanted: &'static str,
got: MmfFamily,
},
PayloadTooLarge,
Timeout,
}Expand description
Errors returned by the user-facing IPC types.
Variants§
Transport(TransportError)
Underlying transport error (full / empty / etc.).
Marshal(MarshalError)
Marshal codec error.
Io(Error)
I/O error during MMF setup.
Map(MapError)
Key-value map error.
WrongFamily
The workload shape resolved to a family this type cannot wrap.
PayloadTooLarge
Payload too large for the chosen transport’s wire format.
Timeout
A blocking send / recv hit its deadline before the ring made progress.
Trait Implementations§
Source§impl Error for ApiError
impl Error for ApiError
1.30.0 · 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<DequeError> for ApiError
impl From<DequeError> for ApiError
Source§fn from(e: DequeError) -> Self
fn from(e: DequeError) -> Self
Converts to this type from the input type.
Source§impl From<MarshalError> for ApiError
impl From<MarshalError> for ApiError
Source§fn from(e: MarshalError) -> Self
fn from(e: MarshalError) -> Self
Converts to this type from the input type.
Source§impl From<TransportError> for ApiError
impl From<TransportError> for ApiError
Source§fn from(e: TransportError) -> Self
fn from(e: TransportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ApiError
impl !UnwindSafe for ApiError
impl Freeze for ApiError
impl Send for ApiError
impl Sync for ApiError
impl Unpin for ApiError
impl UnsafeUnpin for ApiError
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