Enum TryPopError
pub enum TryPopError {
Empty,
Busy,
}Expand description
An unbounded lock-free queue and its pop error, from the kovan-queue
crate: see its docs.
Why SegQueue::try_pop returned no value.
Variants§
Empty
The queue holds no value.
Busy
A push has claimed the queue’s next cell and not written its value yet: a value is on its way. A single consumer can register a waker and park; the producer wakes it once its push returns.
Trait Implementations§
§impl Clone for TryPopError
impl Clone for TryPopError
§fn clone(&self) -> TryPopError
fn clone(&self) -> TryPopError
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 TryPopError
§impl Debug for TryPopError
impl Debug for TryPopError
§impl Display for TryPopError
impl Display for TryPopError
impl Eq for TryPopError
§impl Error for TryPopError
impl Error for TryPopError
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()
§impl Hash for TryPopError
impl Hash for TryPopError
§impl PartialEq for TryPopError
impl PartialEq for TryPopError
impl StructuralPartialEq for TryPopError
Auto Trait Implementations§
impl Freeze for TryPopError
impl RefUnwindSafe for TryPopError
impl Send for TryPopError
impl Sync for TryPopError
impl Unpin for TryPopError
impl UnsafeUnpin for TryPopError
impl UnwindSafe for TryPopError
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