pub enum ShmError {
SyscallError(String, Errno),
SegmentNotInitialized(String),
SegmentMalformed(String),
CausalityBreach(String),
SegmentVersionNotSupported(String),
}Expand description
Error condition returned by all low-level ClockBound APIs.
Variants§
SyscallError(String, Errno)
A system call failed. Variant includes the Errno struct with error details, and an indication on the origin of the system call that error’ed.
SegmentNotInitialized(String)
The shared memory segment is not initialized.
SegmentMalformed(String)
The shared memory segment is initialized but malformed.
CausalityBreach(String)
Failed causality check when comparing timestamps.
SegmentVersionNotSupported(String)
The shared memory segment version is not supported.
Trait Implementations§
impl Eq for ShmError
Source§impl Error for ShmError
impl Error for ShmError
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<ShmError> for ClockBoundError
impl From<ShmError> for ClockBoundError
Source§impl Ord for ShmError
impl Ord for ShmError
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ShmError
impl PartialOrd for ShmError
impl StructuralPartialEq for ShmError
Auto Trait Implementations§
impl Freeze for ShmError
impl RefUnwindSafe for ShmError
impl Send for ShmError
impl Sync for ShmError
impl Unpin for ShmError
impl UnsafeUnpin for ShmError
impl UnwindSafe for ShmError
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