Enum netlink_packet_route::route::RouteProtocol
source · #[non_exhaustive]pub enum RouteProtocol {
Show 23 variants
Unspec,
IcmpRedirect,
Kernel,
Boot,
Static,
Gated,
Ra,
Mrt,
Zebra,
Bird,
DnRouted,
Xorp,
Ntk,
Dhcp,
Mrouted,
KeepAlived,
Babel,
Bgp,
Isis,
Ospf,
Rip,
Eigrp,
Other(u8),
}
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.
Unspec
IcmpRedirect
Kernel
Boot
Static
Gated
Ra
Mrt
Zebra
Bird
DnRouted
Xorp
Ntk
Dhcp
Mrouted
KeepAlived
Babel
Bgp
Isis
Ospf
Rip
Eigrp
Other(u8)
Trait Implementations§
source§impl Clone for RouteProtocol
impl Clone for RouteProtocol
source§fn clone(&self) -> RouteProtocol
fn clone(&self) -> RouteProtocol
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 RouteProtocol
impl Debug for RouteProtocol
source§impl Default for RouteProtocol
impl Default for RouteProtocol
source§impl Display for RouteProtocol
impl Display for RouteProtocol
source§impl Emitable for RouteProtocol
impl Emitable for RouteProtocol
source§impl From<RouteProtocol> for u8
impl From<RouteProtocol> for u8
source§fn from(t: RouteProtocol) -> u8
fn from(t: RouteProtocol) -> u8
Converts to this type from the input type.
source§impl From<u8> for RouteProtocol
impl From<u8> for RouteProtocol
source§impl Parseable<[u8]> for RouteProtocol
impl Parseable<[u8]> for RouteProtocol
source§impl PartialEq for RouteProtocol
impl PartialEq for RouteProtocol
source§fn eq(&self, other: &RouteProtocol) -> bool
fn eq(&self, other: &RouteProtocol) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RouteProtocol
impl Eq for RouteProtocol
impl StructuralEq for RouteProtocol
impl StructuralPartialEq for RouteProtocol
Auto Trait Implementations§
impl RefUnwindSafe for RouteProtocol
impl Send for RouteProtocol
impl Sync for RouteProtocol
impl Unpin for RouteProtocol
impl UnwindSafe for RouteProtocol
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