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§impl Message for FilterStats
impl Message for FilterStats
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
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<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,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
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,
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,
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,
self
.