pub struct SignpostIntervalData {
pub histogrammed_signpost_duration: Histogram,
pub cumulative_cpu_time: Option<Measurement>,
pub average_memory: Option<Average>,
pub cumulative_logical_writes: Option<Measurement>,
pub cumulative_hitch_time_ratio: Option<Measurement>,
}Expand description
Rust representation of MetricKit’s MXSignpostIntervalData.
Fields§
§histogrammed_signpost_duration: HistogramMirrors MXSignpostIntervalData.histogrammedSignpostDuration.
cumulative_cpu_time: Option<Measurement>Mirrors MXSignpostIntervalData.cumulativeCPUTime when MetricKit provides it.
average_memory: Option<Average>Mirrors MXSignpostIntervalData.averageMemory when MetricKit provides it.
cumulative_logical_writes: Option<Measurement>Mirrors MXSignpostIntervalData.cumulativeLogicalWrites when MetricKit provides it.
cumulative_hitch_time_ratio: Option<Measurement>Mirrors MXSignpostIntervalData.cumulativeHitchTimeRatio when MetricKit provides it.
Implementations§
Source§impl SignpostIntervalData
impl SignpostIntervalData
Sourcepub fn json_representation(&self) -> Result<String, MetricKitError>
pub fn json_representation(&self) -> Result<String, MetricKitError>
Returns the JSON representation of this MetricKit signpost model.
Sourcepub fn dictionary_representation(&self) -> Result<Value, MetricKitError>
pub fn dictionary_representation(&self) -> Result<Value, MetricKitError>
Returns the dictionary representation of this MetricKit signpost model.
Trait Implementations§
Source§impl Clone for SignpostIntervalData
impl Clone for SignpostIntervalData
Source§fn clone(&self) -> SignpostIntervalData
fn clone(&self) -> SignpostIntervalData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SignpostIntervalData
impl Debug for SignpostIntervalData
Source§impl<'de> Deserialize<'de> for SignpostIntervalData
impl<'de> Deserialize<'de> for SignpostIntervalData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SignpostIntervalData
impl PartialEq for SignpostIntervalData
Source§fn eq(&self, other: &SignpostIntervalData) -> bool
fn eq(&self, other: &SignpostIntervalData) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SignpostIntervalData
impl Serialize for SignpostIntervalData
impl StructuralPartialEq for SignpostIntervalData
Auto Trait Implementations§
impl Freeze for SignpostIntervalData
impl RefUnwindSafe for SignpostIntervalData
impl Send for SignpostIntervalData
impl Sync for SignpostIntervalData
impl Unpin for SignpostIntervalData
impl UnsafeUnpin for SignpostIntervalData
impl UnwindSafe for SignpostIntervalData
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