#[repr(u16)]pub enum ProtoFamily {
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 ProtoFamily
impl Clone for ProtoFamily
Source§fn clone(&self) -> ProtoFamily
fn clone(&self) -> ProtoFamily
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 ProtoFamily
Source§impl Debug for ProtoFamily
impl Debug for ProtoFamily
impl Eq for ProtoFamily
Source§impl Hash for ProtoFamily
impl Hash for ProtoFamily
Source§impl PartialEq for ProtoFamily
impl PartialEq for ProtoFamily
impl StructuralPartialEq for ProtoFamily
Auto Trait Implementations§
impl Freeze for ProtoFamily
impl RefUnwindSafe for ProtoFamily
impl Send for ProtoFamily
impl Sync for ProtoFamily
impl Unpin for ProtoFamily
impl UnsafeUnpin for ProtoFamily
impl UnwindSafe for ProtoFamily
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