pub enum BlockingError {
Ring(RingError),
WakerFull,
Timeout,
WakerLayout,
Io(ErrorKind),
}Expand description
Errors returned by the blocking variant.
Variants§
Ring(RingError)
Wrapped ring error from the underlying SPSC primitive.
WakerFull
All waker slots in use; caller’s fallback is to spin via
try_send / try_recv directly.
Timeout
recv_blocking / send_blocking returned because the
caller-supplied timeout elapsed without the counterparty
firing a wake.
WakerLayout
Waker mmap layout did not match expectations on open.
Io(ErrorKind)
I/O error from the underlying mmap of either the ring or one of the wakers.
Trait Implementations§
Source§impl Clone for BlockingError
impl Clone for BlockingError
Source§fn clone(&self) -> BlockingError
fn clone(&self) -> BlockingError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BlockingError
Source§impl Debug for BlockingError
impl Debug for BlockingError
impl Eq for BlockingError
Source§impl From<RingError> for BlockingError
impl From<RingError> for BlockingError
Source§impl From<WakerError> for BlockingError
impl From<WakerError> for BlockingError
Source§fn from(e: WakerError) -> Self
fn from(e: WakerError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BlockingError
impl PartialEq for BlockingError
impl StructuralPartialEq for BlockingError
Auto Trait Implementations§
impl Freeze for BlockingError
impl RefUnwindSafe for BlockingError
impl Send for BlockingError
impl Sync for BlockingError
impl Unpin for BlockingError
impl UnsafeUnpin for BlockingError
impl UnwindSafe for BlockingError
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