pub enum PointerState {
Absent,
Present {
rank: Option<u64>,
},
}Expand description
What the publisher observed at the pointer key before deciding.
Variants§
Absent
No pointer object exists — the slot is open (create-only publish).
Present
A pointer object exists. rank is its cursor’s rank, or None when
the object is unparseable — a corrupt pointer MUST be replaceable, or
one bad write wedges publishing forever (the same rule as the export
lease’s corrupt-steal).
Trait Implementations§
Source§impl Clone for PointerState
impl Clone for PointerState
Source§fn clone(&self) -> PointerState
fn clone(&self) -> PointerState
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 PointerState
Source§impl Debug for PointerState
impl Debug for PointerState
impl Eq for PointerState
Source§impl PartialEq for PointerState
impl PartialEq for PointerState
Source§fn eq(&self, other: &PointerState) -> bool
fn eq(&self, other: &PointerState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PointerState
Auto Trait Implementations§
impl Freeze for PointerState
impl RefUnwindSafe for PointerState
impl Send for PointerState
impl Sync for PointerState
impl Unpin for PointerState
impl UnsafeUnpin for PointerState
impl UnwindSafe for PointerState
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