pub enum OwnerRecoveryPosition {
BeforeFirst {
activation: OwnerRecoveryActivationId,
},
At {
node: OwnerRecoveryNodeRef,
},
}Variants§
Implementations§
Source§impl OwnerRecoveryPosition
impl OwnerRecoveryPosition
Sourcepub fn merge(&self, other: &Self) -> Result<Self, StoreProtocolError>
pub fn merge(&self, other: &Self) -> Result<Self, StoreProtocolError>
The position two predecessor states of one Owner grant agree on. The grant’s recovery nodes form one chain in exact slots, one node per sequence, so two positions on it are ordered: a node is past the activation it follows, and a higher sequence is past a lower one. Two states that name different nodes at one sequence, or different activations before the first node, are not on one chain.
Trait Implementations§
Source§impl Clone for OwnerRecoveryPosition
impl Clone for OwnerRecoveryPosition
Source§fn clone(&self) -> OwnerRecoveryPosition
fn clone(&self) -> OwnerRecoveryPosition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OwnerRecoveryPosition
impl Debug for OwnerRecoveryPosition
Source§impl<'de> Deserialize<'de> for OwnerRecoveryPosition
impl<'de> Deserialize<'de> for OwnerRecoveryPosition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for OwnerRecoveryPosition
impl Ord for OwnerRecoveryPosition
Source§fn cmp(&self, other: &OwnerRecoveryPosition) -> Ordering
fn cmp(&self, other: &OwnerRecoveryPosition) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OwnerRecoveryPosition
impl PartialEq for OwnerRecoveryPosition
Source§impl PartialOrd for OwnerRecoveryPosition
impl PartialOrd for OwnerRecoveryPosition
Source§impl Serialize for OwnerRecoveryPosition
impl Serialize for OwnerRecoveryPosition
impl Eq for OwnerRecoveryPosition
impl StructuralPartialEq for OwnerRecoveryPosition
Auto Trait Implementations§
impl Freeze for OwnerRecoveryPosition
impl RefUnwindSafe for OwnerRecoveryPosition
impl Send for OwnerRecoveryPosition
impl Sync for OwnerRecoveryPosition
impl Unpin for OwnerRecoveryPosition
impl UnsafeUnpin for OwnerRecoveryPosition
impl UnwindSafe for OwnerRecoveryPosition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.