Struct solana_ledger::blockstore::CompletedDataSetInfo
source · pub struct CompletedDataSetInfo {
pub slot: Slot,
pub start_index: u32,
pub end_index: u32,
}
Expand description
A “complete data set” is a range of Shred
s that combined in sequence carry a single
serialized Vec<Entry>
.
Services such as the WindowService
for a TVU, and ReplayStage
for a TPU, piece together
these sets by inserting shreds via direct or indirect calls to
Blockstore::insert_shreds_handle_duplicate()
.
solana_core::completed_data_sets_service::CompletedDataSetsService
is the main receiver of
CompletedDataSetInfo
.
Fields§
§slot: Slot
§start_index: u32
Index of the first Shred
in the range of shreds that belong to this set.
Range is inclusive, start_index..=end_index
.
end_index: u32
Index of the last Shred
in the range of shreds that belong to this set.
Range is inclusive, start_index..=end_index
.
Trait Implementations§
source§impl Clone for CompletedDataSetInfo
impl Clone for CompletedDataSetInfo
source§fn clone(&self) -> CompletedDataSetInfo
fn clone(&self) -> CompletedDataSetInfo
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 CompletedDataSetInfo
impl Debug for CompletedDataSetInfo
source§impl PartialEq<CompletedDataSetInfo> for CompletedDataSetInfo
impl PartialEq<CompletedDataSetInfo> for CompletedDataSetInfo
source§fn eq(&self, other: &CompletedDataSetInfo) -> bool
fn eq(&self, other: &CompletedDataSetInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CompletedDataSetInfo
impl Eq for CompletedDataSetInfo
impl StructuralEq for CompletedDataSetInfo
impl StructuralPartialEq for CompletedDataSetInfo
Auto Trait Implementations§
impl RefUnwindSafe for CompletedDataSetInfo
impl Send for CompletedDataSetInfo
impl Sync for CompletedDataSetInfo
impl Unpin for CompletedDataSetInfo
impl UnwindSafe for CompletedDataSetInfo
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request