Struct solana_ledger::shred::ShredFetchStats
source · pub struct ShredFetchStats {Show 14 fields
pub index_overrun: usize,
pub shred_count: usize,
pub(crate) num_shreds_merkle_code: usize,
pub(crate) num_shreds_merkle_data: usize,
pub ping_count: usize,
pub ping_err_verify_count: usize,
pub(crate) index_bad_deserialize: usize,
pub(crate) index_out_of_bounds: usize,
pub(crate) slot_bad_deserialize: usize,
pub slot_out_of_range: usize,
pub(crate) bad_shred_type: usize,
pub shred_version_mismatch: usize,
pub(crate) bad_parent_offset: usize,
since: Option<Instant>,
}
Fields§
§index_overrun: usize
§shred_count: usize
§num_shreds_merkle_code: usize
§num_shreds_merkle_data: usize
§ping_count: usize
§ping_err_verify_count: usize
§index_bad_deserialize: usize
§index_out_of_bounds: usize
§slot_bad_deserialize: usize
§slot_out_of_range: usize
§bad_shred_type: usize
§shred_version_mismatch: usize
§bad_parent_offset: usize
§since: Option<Instant>
Implementations§
source§impl ShredFetchStats
impl ShredFetchStats
pub fn maybe_submit(&mut self, name: &'static str, cadence: Duration)
Trait Implementations§
source§impl Debug for ShredFetchStats
impl Debug for ShredFetchStats
source§impl Default for ShredFetchStats
impl Default for ShredFetchStats
source§fn default() -> ShredFetchStats
fn default() -> ShredFetchStats
Returns the “default value” for a type. Read more
source§impl PartialEq<ShredFetchStats> for ShredFetchStats
impl PartialEq<ShredFetchStats> for ShredFetchStats
source§fn eq(&self, other: &ShredFetchStats) -> bool
fn eq(&self, other: &ShredFetchStats) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ShredFetchStats
impl StructuralEq for ShredFetchStats
impl StructuralPartialEq for ShredFetchStats
Auto Trait Implementations§
impl RefUnwindSafe for ShredFetchStats
impl Send for ShredFetchStats
impl Sync for ShredFetchStats
impl Unpin for ShredFetchStats
impl UnwindSafe for ShredFetchStats
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