pub struct FilterStats {
pub input_packets: Option<u64>,
pub input_bytes: Option<u64>,
pub output_bytes: Option<u64>,
pub errors: Option<u64>,
pub time_taken_ns: Option<u64>,
pub bytes_discarded_per_buffer: Vec<u64>,
}Expand description
This is set only when the TraceConfig specifies a TraceFilter.
Fields§
§input_packets: Option<u64>§input_bytes: Option<u64>§output_bytes: Option<u64>§errors: Option<u64>§time_taken_ns: Option<u64>§bytes_discarded_per_buffer: Vec<u64>The number of bytes discarded by the filter (i.e. output - input). The array has one entry for each buffer defined in the config (unless no packets for that buffer were seen and hence filtered). Note: the SUM(bytes_discarded_per_buffer) will be <= but not == the total (output_bytes - input_bytes) because the filter might also discard server-generated synthetic packets, that have no buffer index.
Implementations§
Source§impl FilterStats
impl FilterStats
Sourcepub fn input_packets(&self) -> u64
pub fn input_packets(&self) -> u64
Returns the value of input_packets, or the default value if input_packets is unset.
Sourcepub fn input_bytes(&self) -> u64
pub fn input_bytes(&self) -> u64
Returns the value of input_bytes, or the default value if input_bytes is unset.
Sourcepub fn output_bytes(&self) -> u64
pub fn output_bytes(&self) -> u64
Returns the value of output_bytes, or the default value if output_bytes is unset.
Sourcepub fn errors(&self) -> u64
pub fn errors(&self) -> u64
Returns the value of errors, or the default value if errors is unset.
Sourcepub fn time_taken_ns(&self) -> u64
pub fn time_taken_ns(&self) -> u64
Returns the value of time_taken_ns, or the default value if time_taken_ns is unset.
Trait Implementations§
Source§impl Clone for FilterStats
impl Clone for FilterStats
Source§fn clone(&self) -> FilterStats
fn clone(&self) -> FilterStats
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FilterStats
impl Debug for FilterStats
Source§impl Default for FilterStats
impl Default for FilterStats
Source§fn default() -> FilterStats
fn default() -> FilterStats
Source§impl Message for FilterStats
impl Message for FilterStats
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for FilterStats
impl PartialEq for FilterStats
impl StructuralPartialEq for FilterStats
Auto Trait Implementations§
impl Freeze for FilterStats
impl RefUnwindSafe for FilterStats
impl Send for FilterStats
impl Sync for FilterStats
impl Unpin for FilterStats
impl UnwindSafe for FilterStats
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].