Enum solana_ledger::blockstore_meta::PerfSample
source · pub enum PerfSample {
V1(PerfSampleV1),
V2(PerfSampleV2),
}
Expand description
Performance information about validator execution during a time slice.
Older versions should only arise as a result of deserialization of entries stored by a previous
version of the validator. Current version should only produce PerfSampleV2
.
Variants§
V1(PerfSampleV1)
V2(PerfSampleV2)
Trait Implementations§
source§impl Clone for PerfSample
impl Clone for PerfSample
source§fn clone(&self) -> PerfSample
fn clone(&self) -> PerfSample
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 PerfSample
impl Debug for PerfSample
source§impl From<PerfSampleV1> for PerfSample
impl From<PerfSampleV1> for PerfSample
source§fn from(value: PerfSampleV1) -> PerfSample
fn from(value: PerfSampleV1) -> PerfSample
Converts to this type from the input type.
source§impl From<PerfSampleV2> for PerfSample
impl From<PerfSampleV2> for PerfSample
source§fn from(value: PerfSampleV2) -> PerfSample
fn from(value: PerfSampleV2) -> PerfSample
Converts to this type from the input type.
source§impl PartialEq<PerfSample> for PerfSample
impl PartialEq<PerfSample> for PerfSample
source§fn eq(&self, other: &PerfSample) -> bool
fn eq(&self, other: &PerfSample) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PerfSample
impl StructuralEq for PerfSample
impl StructuralPartialEq for PerfSample
Auto Trait Implementations§
impl RefUnwindSafe for PerfSample
impl Send for PerfSample
impl Sync for PerfSample
impl Unpin for PerfSample
impl UnwindSafe for PerfSample
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