pub enum MetricType {
Counter,
Gauge,
Histogram,
Latency,
}Expand description
The type of metric being recorded
Variants§
Counter
Counter metric that only increases (e.g., order count, trade volume)
Gauge
Gauge metric that can increase or decrease (e.g., P&L, position size)
Histogram
Histogram metric for recording value distributions (e.g., trade sizes, spreads)
Latency
Latency metric for timing measurements (e.g., order RTT, execution time)
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for MetricType
impl<'__de, __Context> BorrowDecode<'__de, __Context> for MetricType
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for MetricType
impl Clone for MetricType
Source§fn clone(&self) -> MetricType
fn clone(&self) -> MetricType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetricType
impl Debug for MetricType
Source§impl<__Context> Decode<__Context> for MetricType
impl<__Context> Decode<__Context> for MetricType
Source§impl<'de> Deserialize<'de> for MetricType
impl<'de> Deserialize<'de> for MetricType
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 Encode for MetricType
impl Encode for MetricType
Source§impl Hash for MetricType
impl Hash for MetricType
Source§impl PartialEq for MetricType
impl PartialEq for MetricType
Source§impl Serialize for MetricType
impl Serialize for MetricType
impl Copy for MetricType
impl Eq for MetricType
impl StructuralPartialEq for MetricType
Auto Trait Implementations§
impl Freeze for MetricType
impl RefUnwindSafe for MetricType
impl Send for MetricType
impl Sync for MetricType
impl Unpin for MetricType
impl UnwindSafe for MetricType
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.