pub enum PopError {
Empty,
Closed,
}Expand description
The result of an operation that did not find a node.
Variants§
Empty
No node was found, and the collection was observed open.
For a sharded collection this describes a scan, not an atomic snapshot of all shards. A concurrent push can make another node available.
Closed
The collection was observed empty and closed.
Trait Implementations§
impl Copy for PopError
impl Eq for PopError
Source§impl Error for PopError
impl Error for PopError
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 StructuralPartialEq for PopError
Auto Trait Implementations§
impl Forget for PopError
impl Freeze for PopError
impl Move for PopError
impl RefUnwindSafe for PopError
impl Send for PopError
impl Sync for PopError
impl Unpin for PopError
impl UnsafeUnpin for PopError
impl UnwindSafe for PopError
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