#[non_exhaustive]#[repr(u16)]pub enum HashReport {
None = 0,
Ipv4 = 1,
Tcpv4 = 2,
Udpv4 = 3,
IPv6 = 4,
Tcpv6 = 5,
Udpv6 = 6,
Ipv6Ex = 7,
Tcpv6Ex = 8,
Udpv6Ex = 9,
}Expand description
Hash Report
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.
None = 0
Ipv4 = 1
Tcpv4 = 2
Udpv4 = 3
IPv6 = 4
Tcpv6 = 5
Udpv6 = 6
Ipv6Ex = 7
Tcpv6Ex = 8
Udpv6Ex = 9
Trait Implementations§
Source§impl Clone for HashReport
impl Clone for HashReport
Source§fn clone(&self) -> HashReport
fn clone(&self) -> HashReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HashReport
Source§impl Debug for HashReport
impl Debug for HashReport
impl Eq for HashReport
Source§impl From<HashReport> for u16
impl From<HashReport> for u16
Source§fn from(enum_value: HashReport) -> Self
fn from(enum_value: HashReport) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HashReport
impl PartialEq for HashReport
impl StructuralPartialEq for HashReport
Source§impl TryFrom<u16> for HashReport
impl TryFrom<u16> for HashReport
Source§type Error = TryFromPrimitiveError<HashReport>
type Error = TryFromPrimitiveError<HashReport>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for HashReport
impl TryFromPrimitive for HashReport
const NAME: &'static str = "HashReport"
type Primitive = u16
type Error = TryFromPrimitiveError<HashReport>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for HashReport
impl RefUnwindSafe for HashReport
impl Send for HashReport
impl Sync for HashReport
impl Unpin for HashReport
impl UnsafeUnpin for HashReport
impl UnwindSafe for HashReport
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