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: CompressionType§entry_offset: u32The relative offset within its group of entries.
entry_len: u32The encoded length within its group of entries.
Trait Implementations§
source§impl Clone for EntryIndex
impl Clone for EntryIndex
source§fn clone(&self) -> EntryIndex
fn clone(&self) -> EntryIndex
Returns a copy 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 EntryIndex
impl Debug for EntryIndex
source§impl Default for EntryIndex
impl Default for EntryIndex
source§fn default() -> EntryIndex
fn default() -> EntryIndex
Returns the “default value” for a type. Read more
source§impl PartialEq<EntryIndex> for EntryIndex
impl PartialEq<EntryIndex> for EntryIndex
source§fn 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 ==.impl Copy for EntryIndex
impl Eq for EntryIndex
impl StructuralEq 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§
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