Enum netlink_packet_route::IpProtocol
source · #[non_exhaustive]pub enum IpProtocol {
Show 29 variants
Hopopts,
Icmp,
Igmp,
Ipip,
Tcp,
Egp,
Pup,
Udp,
Idp,
Tp,
Dccp,
Ipv6,
Rsvp,
Gre,
Esp,
Ah,
Mtp,
Beetph,
Encap,
Pim,
Comp,
L2tp,
Sctp,
Udplite,
Mpls,
Ethernet,
Raw,
Mptcp,
Other(i32),
}
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.
Hopopts
Icmp
Igmp
Ipip
Tcp
Egp
Pup
Udp
Idp
Tp
Dccp
Ipv6
Rsvp
Gre
Esp
Ah
Mtp
Beetph
Encap
Pim
Comp
L2tp
Sctp
Udplite
Mpls
Ethernet
Raw
Mptcp
Other(i32)
Trait Implementations§
source§impl Clone for IpProtocol
impl Clone for IpProtocol
source§fn clone(&self) -> IpProtocol
fn clone(&self) -> IpProtocol
Returns a copy 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 IpProtocol
impl Debug for IpProtocol
source§impl Default for IpProtocol
impl Default for IpProtocol
source§fn default() -> IpProtocol
fn default() -> IpProtocol
Returns the “default value” for a type. Read more
source§impl From<IpProtocol> for i32
impl From<IpProtocol> for i32
source§fn from(v: IpProtocol) -> i32
fn from(v: IpProtocol) -> i32
Converts to this type from the input type.
source§impl From<i32> for IpProtocol
impl From<i32> for IpProtocol
source§impl PartialEq for IpProtocol
impl PartialEq for IpProtocol
impl Copy for IpProtocol
impl Eq for IpProtocol
impl StructuralPartialEq for IpProtocol
Auto Trait Implementations§
impl Freeze for IpProtocol
impl RefUnwindSafe for IpProtocol
impl Send for IpProtocol
impl Sync for IpProtocol
impl Unpin for IpProtocol
impl UnwindSafe for IpProtocol
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)