pub struct AuthoritativeSlot<'slot, T> {
pub index: CommitSlotIndex,
pub record: &'slot T,
}Expand description
AuthoritativeSlot
Highest-generation valid slot selected by protected recovery.
Fields§
§index: CommitSlotIndexPhysical slot index.
record: &'slot TValid committed generation in that slot.
Trait Implementations§
Source§impl<'slot, T: Clone> Clone for AuthoritativeSlot<'slot, T>
impl<'slot, T: Clone> Clone for AuthoritativeSlot<'slot, T>
Source§fn clone(&self) -> AuthoritativeSlot<'slot, T>
fn clone(&self) -> AuthoritativeSlot<'slot, T>
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<'slot, T: Debug> Debug for AuthoritativeSlot<'slot, T>
impl<'slot, T: Debug> Debug for AuthoritativeSlot<'slot, T>
Source§impl<'slot, T: PartialEq> PartialEq for AuthoritativeSlot<'slot, T>
impl<'slot, T: PartialEq> PartialEq for AuthoritativeSlot<'slot, T>
Source§fn eq(&self, other: &AuthoritativeSlot<'slot, T>) -> bool
fn eq(&self, other: &AuthoritativeSlot<'slot, T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'slot, T: Copy> Copy for AuthoritativeSlot<'slot, T>
impl<'slot, T: Eq> Eq for AuthoritativeSlot<'slot, T>
impl<'slot, T> StructuralPartialEq for AuthoritativeSlot<'slot, T>
Auto Trait Implementations§
impl<'slot, T> Freeze for AuthoritativeSlot<'slot, T>
impl<'slot, T> RefUnwindSafe for AuthoritativeSlot<'slot, T>where
T: RefUnwindSafe,
impl<'slot, T> Send for AuthoritativeSlot<'slot, T>where
T: Sync,
impl<'slot, T> Sync for AuthoritativeSlot<'slot, T>where
T: Sync,
impl<'slot, T> Unpin for AuthoritativeSlot<'slot, T>
impl<'slot, T> UnsafeUnpin for AuthoritativeSlot<'slot, T>
impl<'slot, T> UnwindSafe for AuthoritativeSlot<'slot, T>where
T: RefUnwindSafe,
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