#[repr(i32)]pub enum ProtocolFamily {
Unspec = 0,
Inet = 1,
Ipv4 = 2,
Arp = 3,
NetDev = 5,
Bridge = 7,
Ipv6 = 10,
DecNet = 12,
}Expand description
Denotes a protocol. Used to specify which protocol a table or set belongs to.
Variants§
Unspec = 0
Inet = 1
Inet - Means both IPv4 and IPv6
Ipv4 = 2
Arp = 3
NetDev = 5
Bridge = 7
Ipv6 = 10
DecNet = 12
Trait Implementations§
Source§impl Clone for ProtocolFamily
impl Clone for ProtocolFamily
Source§fn clone(&self) -> ProtocolFamily
fn clone(&self) -> ProtocolFamily
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 ProtocolFamily
impl Debug for ProtocolFamily
Source§impl Default for ProtocolFamily
impl Default for ProtocolFamily
Source§impl PartialEq for ProtocolFamily
impl PartialEq for ProtocolFamily
Source§impl TryFrom<i32> for ProtocolFamily
impl TryFrom<i32> for ProtocolFamily
impl Copy for ProtocolFamily
impl Eq for ProtocolFamily
impl StructuralPartialEq for ProtocolFamily
Auto Trait Implementations§
impl Freeze for ProtocolFamily
impl RefUnwindSafe for ProtocolFamily
impl Send for ProtocolFamily
impl Sync for ProtocolFamily
impl Unpin for ProtocolFamily
impl UnwindSafe for ProtocolFamily
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