pub enum LocalRotation {
Candidate {
generation: NonZeroU64,
mutation: ObjectHash,
},
Committed {
generation: NonZeroU64,
mutation: ObjectHash,
},
}Expand description
This device’s own rotation: a candidate it may still publish or lose, or its committed rotation awaiting local adoption. The commit consumes the candidate, so the two are the same fact at different points of its life — a device holds one or the other, never both.
Variants§
Trait Implementations§
Source§impl Clone for LocalRotation
impl Clone for LocalRotation
Source§fn clone(&self) -> LocalRotation
fn clone(&self) -> LocalRotation
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 LocalRotation
impl Debug for LocalRotation
Source§impl<'de> Deserialize<'de> for LocalRotation
impl<'de> Deserialize<'de> for LocalRotation
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 PartialEq for LocalRotation
impl PartialEq for LocalRotation
Source§impl Serialize for LocalRotation
impl Serialize for LocalRotation
impl Copy for LocalRotation
impl Eq for LocalRotation
impl StructuralPartialEq for LocalRotation
Auto Trait Implementations§
impl Freeze for LocalRotation
impl RefUnwindSafe for LocalRotation
impl Send for LocalRotation
impl Sync for LocalRotation
impl Unpin for LocalRotation
impl UnsafeUnpin for LocalRotation
impl UnwindSafe for LocalRotation
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> 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.