#[repr(C)]pub struct ReplicaEntryInfo<'a> {
pub slot: Slot,
pub index: usize,
pub num_hashes: u64,
pub hash: &'a [u8],
pub executed_transaction_count: u64,
}
Fields§
§slot: Slot
The slot number of the block containing this Entry
index: usize
The Entry’s index in the block
num_hashes: u64
The number of hashes since the previous Entry
hash: &'a [u8]
The Entry’s SHA-256 hash, generated from the previous Entry’s hash with
solana_entry::entry::next_hash()
executed_transaction_count: u64
The number of executed transactions in the Entry
Trait Implementations§
source§impl<'a> Clone for ReplicaEntryInfo<'a>
impl<'a> Clone for ReplicaEntryInfo<'a>
source§fn clone(&self) -> ReplicaEntryInfo<'a>
fn clone(&self) -> ReplicaEntryInfo<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for ReplicaEntryInfo<'a>
impl<'a> RefUnwindSafe for ReplicaEntryInfo<'a>
impl<'a> Send for ReplicaEntryInfo<'a>
impl<'a> Sync for ReplicaEntryInfo<'a>
impl<'a> Unpin for ReplicaEntryInfo<'a>
impl<'a> UnwindSafe for ReplicaEntryInfo<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more