pub enum CondvarError {
WakerFull,
Timeout,
LayoutMismatch,
Io(ErrorKind),
}Expand description
Errors returned by SharedCondvar operations.
Variants§
WakerFull
All waker slots in use; caller’s fallback is to spin on the predicate via the underlying atom.
Timeout
wait_timeout returned because the caller-supplied timeout
elapsed before the predicate became true.
LayoutMismatch
Backing file (waker or gen) layout did not match expectations
on open.
Io(ErrorKind)
I/O error from the underlying mmap.
Trait Implementations§
Source§impl Clone for CondvarError
impl Clone for CondvarError
Source§fn clone(&self) -> CondvarError
fn clone(&self) -> CondvarError
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 CondvarError
Source§impl Debug for CondvarError
impl Debug for CondvarError
impl Eq for CondvarError
Source§impl From<Error> for CondvarError
impl From<Error> for CondvarError
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 CondvarError
impl PartialEq for CondvarError
impl StructuralPartialEq for CondvarError
Auto Trait Implementations§
impl Freeze for CondvarError
impl RefUnwindSafe for CondvarError
impl Send for CondvarError
impl Sync for CondvarError
impl Unpin for CondvarError
impl UnsafeUnpin for CondvarError
impl UnwindSafe for CondvarError
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