Enum netlink_packet_route::route::RouteType
source · #[non_exhaustive]pub enum RouteType {
Show 13 variants
Unspec,
Unicast,
Local,
Broadcast,
Anycast,
Multicast,
BlackHole,
Unreachable,
Prohibit,
Throw,
Nat,
ExternalResolve,
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
Unknown
Unicast
Gateway or direct route
Local
Accept locally
Broadcast
Accept locally as broadcast, send as broadcast
Anycast
Accept locally as broadcast, but send as unicast
Multicast
Multicast route
BlackHole
Drop
Unreachable
Destination is unreachable
Prohibit
Administratively prohibited
Throw
Not in this table
Nat
Translate this address
ExternalResolve
Use external resolver
Other(u8)
Trait Implementations§
source§impl PartialEq for RouteType
impl PartialEq for RouteType
impl Copy for RouteType
impl Eq for RouteType
impl StructuralPartialEq for RouteType
Auto Trait Implementations§
impl RefUnwindSafe for RouteType
impl Send for RouteType
impl Sync for RouteType
impl Unpin for RouteType
impl UnwindSafe for RouteType
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