#[non_exhaustive]#[repr(u8)]pub enum HdrGso {
None = 0,
Tcpv4 = 1,
Udp = 3,
Tcpv6 = 4,
UdpL4 = 5,
Ecn = 128,
Unknown(u8),
}
Expand description
Network Device Header GSO Type
This enum is not ABI-compatible with it’s corresponding field.
Use HdrGso::from
for converting from an integer.
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.
Trait Implementations§
Source§impl FromPrimitive for HdrGso
impl FromPrimitive for HdrGso
impl Copy for HdrGso
impl Eq for HdrGso
impl StructuralPartialEq for HdrGso
Auto Trait Implementations§
impl Freeze for HdrGso
impl RefUnwindSafe for HdrGso
impl Send for HdrGso
impl Sync for HdrGso
impl Unpin for HdrGso
impl UnwindSafe for HdrGso
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