pub enum WakerError {
Full,
Timeout,
LayoutMismatch,
IoError(ErrorKind),
}Expand description
Errors returned by waker operations.
Variants§
Full
All slots in use. Caller’s fallback path: spin until the thing they care about is ready (the same path they’d use without a waker).
Timeout
wait() returned because its timeout elapsed before any
producer fired a wake.
LayoutMismatch
open() rejected the MMF because magic / capacity did
not match.
IoError(ErrorKind)
I/O error from the underlying mmap.
Trait Implementations§
Source§impl Clone for WakerError
impl Clone for WakerError
Source§fn clone(&self) -> WakerError
fn clone(&self) -> WakerError
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 WakerError
Source§impl Debug for WakerError
impl Debug for WakerError
Source§impl Display for WakerError
impl Display for WakerError
impl Eq for WakerError
Source§impl Error for WakerError
impl Error for WakerError
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<Error> for WakerError
impl From<Error> for WakerError
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 From<WakerError> for BlockingRWLockError
impl From<WakerError> for BlockingRWLockError
Source§fn from(e: WakerError) -> Self
fn from(e: WakerError) -> Self
Converts to this type from the input type.
Source§impl From<WakerError> for BlockingSemaphoreError
impl From<WakerError> for BlockingSemaphoreError
Source§fn from(e: WakerError) -> Self
fn from(e: WakerError) -> Self
Converts to this type from the input type.
Source§impl From<WakerError> for CondvarError
impl From<WakerError> for CondvarError
Source§fn from(e: WakerError) -> Self
fn from(e: WakerError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WakerError
impl PartialEq for WakerError
impl StructuralPartialEq for WakerError
Auto Trait Implementations§
impl Freeze for WakerError
impl RefUnwindSafe for WakerError
impl Send for WakerError
impl Sync for WakerError
impl Unpin for WakerError
impl UnsafeUnpin for WakerError
impl UnwindSafe for WakerError
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