#[non_exhaustive]pub enum TransportProtocol {
Unknown,
Tcp,
Udp,
Sctp,
Other(i32),
}Expand description
Transport protocol selected by libiperf for a metrics sample.
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
The protocol was not reported or is not currently recognized.
Tcp
TCP mode.
Udp
UDP mode.
Sctp
SCTP mode.
Other(i32)
Another upstream protocol id.
Trait Implementations§
Source§impl Clone for TransportProtocol
impl Clone for TransportProtocol
Source§fn clone(&self) -> TransportProtocol
fn clone(&self) -> TransportProtocol
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 TransportProtocol
impl Debug for TransportProtocol
Source§impl Default for TransportProtocol
impl Default for TransportProtocol
Source§fn default() -> TransportProtocol
fn default() -> TransportProtocol
Returns the “default value” for a type. Read more
Source§impl PartialEq for TransportProtocol
impl PartialEq for TransportProtocol
Source§impl Serialize for TransportProtocol
impl Serialize for TransportProtocol
impl Copy for TransportProtocol
impl Eq for TransportProtocol
impl StructuralPartialEq for TransportProtocol
Auto Trait Implementations§
impl Freeze for TransportProtocol
impl RefUnwindSafe for TransportProtocol
impl Send for TransportProtocol
impl Sync for TransportProtocol
impl Unpin for TransportProtocol
impl UnsafeUnpin for TransportProtocol
impl UnwindSafe for TransportProtocol
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