pub struct ComponentMetrics {
pub received_bytes_total: Option<i64>,
pub received_events_total: Option<i64>,
pub sent_bytes_total: Option<i64>,
pub sent_events_total: Option<i64>,
}Fields§
§received_bytes_total: Option<i64>§received_events_total: Option<i64>§sent_bytes_total: Option<i64>§sent_events_total: Option<i64>Implementations§
Source§impl ComponentMetrics
impl ComponentMetrics
Sourcepub fn received_bytes_total(&self) -> i64
pub fn received_bytes_total(&self) -> i64
Returns the value of received_bytes_total, or the default value if received_bytes_total is unset.
Sourcepub fn received_events_total(&self) -> i64
pub fn received_events_total(&self) -> i64
Returns the value of received_events_total, or the default value if received_events_total is unset.
Sourcepub fn sent_bytes_total(&self) -> i64
pub fn sent_bytes_total(&self) -> i64
Returns the value of sent_bytes_total, or the default value if sent_bytes_total is unset.
Sourcepub fn sent_events_total(&self) -> i64
pub fn sent_events_total(&self) -> i64
Returns the value of sent_events_total, or the default value if sent_events_total is unset.
Trait Implementations§
Source§impl Clone for ComponentMetrics
impl Clone for ComponentMetrics
Source§fn clone(&self) -> ComponentMetrics
fn clone(&self) -> ComponentMetrics
Returns a duplicate 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 ComponentMetrics
impl Debug for ComponentMetrics
Source§impl Default for ComponentMetrics
impl Default for ComponentMetrics
Source§impl Message for ComponentMetrics
impl Message for ComponentMetrics
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ComponentMetrics
impl PartialEq for ComponentMetrics
impl StructuralPartialEq for ComponentMetrics
Auto Trait Implementations§
impl Freeze for ComponentMetrics
impl RefUnwindSafe for ComponentMetrics
impl Send for ComponentMetrics
impl Sync for ComponentMetrics
impl Unpin for ComponentMetrics
impl UnsafeUnpin for ComponentMetrics
impl UnwindSafe for ComponentMetrics
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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