pub enum ShmError {
Disconnected,
Timeout,
BufferFull,
ProtocolMismatch,
InvalidState,
MessageTooLarge,
Other(&'static str),
}Variants§
Trait Implementations§
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<FutexError> for ShmError
impl From<FutexError> for ShmError
Source§fn from(err: FutexError) -> ShmError
fn from(err: FutexError) -> ShmError
Converts to this type from the input type.
Source§impl From<RingBufferError> for ShmError
impl From<RingBufferError> for ShmError
Source§fn from(err: RingBufferError) -> ShmError
fn from(err: RingBufferError) -> ShmError
Converts to this type from the input type.
impl Copy for ShmError
impl Eq 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