Struct solana_metrics::datapoint::DataPoint [−][src]
pub struct DataPoint { pub name: &'static str, pub timestamp: u64, pub fields: Vec<(&'static str, String)>, }
Fields
name: &'static str
timestamp: u64
fields: Vec<(&'static str, String)>
Implementations
impl DataPoint
[src]
impl DataPoint
[src]pub fn new(name: &'static str) -> Self
[src]
pub fn add_field_str(&mut self, name: &'static str, value: &str) -> &mut Self
[src]
pub fn add_field_bool(&mut self, name: &'static str, value: bool) -> &mut Self
[src]
pub fn add_field_i64(&mut self, name: &'static str, value: i64) -> &mut Self
[src]
pub fn add_field_f64(&mut self, name: &'static str, value: f64) -> &mut Self
[src]
Trait Implementations
impl From<CounterPoint> for DataPoint
[src]
impl From<CounterPoint> for DataPoint
[src]fn from(counter_point: CounterPoint) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for DataPoint
impl RefUnwindSafe for DataPoint
impl UnwindSafe for DataPoint
impl UnwindSafe for DataPoint
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,