Struct raft_engine::internals::EntryIndex
source · [−]pub struct EntryIndex {
pub index: u64,
pub entries: Option<FileBlockHandle>,
pub compression_type: CompressionType,
pub entry_offset: u32,
pub entry_len: u32,
}Expand description
Location of a log entry.
Fields
index: u64Logical index.
entries: Option<FileBlockHandle>File location of the group of entries that this entry belongs to.
compression_type: CompressionTypeentry_offset: u32The relative offset within its group of entries.
entry_len: u32The encoded length within its group of entries.
Trait Implementations
sourceimpl Clone for EntryIndex
impl Clone for EntryIndex
sourcefn clone(&self) -> EntryIndex
fn clone(&self) -> EntryIndex
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for EntryIndex
impl Debug for EntryIndex
sourceimpl Default for EntryIndex
impl Default for EntryIndex
sourcefn default() -> EntryIndex
fn default() -> EntryIndex
Returns the “default value” for a type. Read more
sourceimpl PartialEq<EntryIndex> for EntryIndex
impl PartialEq<EntryIndex> for EntryIndex
sourcefn eq(&self, other: &EntryIndex) -> bool
fn eq(&self, other: &EntryIndex) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &EntryIndex) -> bool
fn ne(&self, other: &EntryIndex) -> bool
This method tests for !=.
impl Copy for EntryIndex
impl StructuralPartialEq for EntryIndex
Auto Trait Implementations
impl RefUnwindSafe for EntryIndex
impl Send for EntryIndex
impl Sync for EntryIndex
impl Unpin for EntryIndex
impl UnwindSafe for EntryIndex
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more