#[non_exhaustive]pub enum MetricDirection {
Unknown,
Sender,
Receiver,
Other(i32),
}Expand description
Direction of the libiperf streams represented by a metrics sample.
Each sample aggregates one direction selected by the native callback. For a bidirectional run, the current callback reports the client-side sending aggregate and the server-side receiving aggregate, not both directions from the same process.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
Direction was not reported.
Sender
Streams sending from this iperf process.
Receiver
Streams receiving into this iperf process.
Other(i32)
Another upstream direction id.
Trait Implementations§
Source§impl Clone for MetricDirection
impl Clone for MetricDirection
Source§fn clone(&self) -> MetricDirection
fn clone(&self) -> MetricDirection
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 MetricDirection
impl Debug for MetricDirection
Source§impl Default for MetricDirection
impl Default for MetricDirection
Source§fn default() -> MetricDirection
fn default() -> MetricDirection
Returns the “default value” for a type. Read more
Source§impl PartialEq for MetricDirection
impl PartialEq for MetricDirection
Source§impl Serialize for MetricDirection
impl Serialize for MetricDirection
impl Copy for MetricDirection
impl Eq for MetricDirection
impl StructuralPartialEq for MetricDirection
Auto Trait Implementations§
impl Freeze for MetricDirection
impl RefUnwindSafe for MetricDirection
impl Send for MetricDirection
impl Sync for MetricDirection
impl Unpin for MetricDirection
impl UnsafeUnpin for MetricDirection
impl UnwindSafe for MetricDirection
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