pub enum CommitSlotIndex {
Slot0,
Slot1,
}Expand description
CommitSlotIndex
Physical dual-slot index selected by protected recovery.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for CommitSlotIndex
impl Clone for CommitSlotIndex
Source§fn clone(&self) -> CommitSlotIndex
fn clone(&self) -> CommitSlotIndex
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 moreSource§impl Debug for CommitSlotIndex
impl Debug for CommitSlotIndex
Source§impl<'de> Deserialize<'de> for CommitSlotIndex
impl<'de> Deserialize<'de> for CommitSlotIndex
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 CommitSlotIndex
impl Ord for CommitSlotIndex
Source§fn cmp(&self, other: &CommitSlotIndex) -> Ordering
fn cmp(&self, other: &CommitSlotIndex) -> Ordering
1.21.0 (const: unstable) · 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 CommitSlotIndex
impl PartialEq for CommitSlotIndex
Source§fn eq(&self, other: &CommitSlotIndex) -> bool
fn eq(&self, other: &CommitSlotIndex) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CommitSlotIndex
impl PartialOrd for CommitSlotIndex
Source§impl Serialize for CommitSlotIndex
impl Serialize for CommitSlotIndex
impl Copy for CommitSlotIndex
impl Eq for CommitSlotIndex
impl StructuralPartialEq for CommitSlotIndex
Auto Trait Implementations§
impl Freeze for CommitSlotIndex
impl RefUnwindSafe for CommitSlotIndex
impl Send for CommitSlotIndex
impl Sync for CommitSlotIndex
impl Unpin for CommitSlotIndex
impl UnsafeUnpin for CommitSlotIndex
impl UnwindSafe for CommitSlotIndex
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