Struct netlink_packet_route::route::RouteNextHop
source · #[non_exhaustive]pub struct RouteNextHop {
pub flags: Vec<RouteNextHopFlag>,
pub hops: u8,
pub interface_index: u32,
pub attributes: Vec<RouteAttribute>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.flags: Vec<RouteNextHopFlag>
Next-hop flags
hops: u8
Next-hop priority
interface_index: u32
Interface index for the next-hop
attributes: Vec<RouteAttribute>
Attributes
Trait Implementations§
source§impl Clone for RouteNextHop
impl Clone for RouteNextHop
source§fn clone(&self) -> RouteNextHop
fn clone(&self) -> RouteNextHop
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 RouteNextHop
impl Debug for RouteNextHop
source§impl Default for RouteNextHop
impl Default for RouteNextHop
source§fn default() -> RouteNextHop
fn default() -> RouteNextHop
Returns the “default value” for a type. Read more
source§impl Emitable for RouteNextHop
impl Emitable for RouteNextHop
source§impl<'a, T: AsRef<[u8]>> ParseableParametrized<RouteNextHopBuffer<&'a T>, (AddressFamily, RouteType, RouteLwEnCapType)> for RouteNextHop
impl<'a, T: AsRef<[u8]>> ParseableParametrized<RouteNextHopBuffer<&'a T>, (AddressFamily, RouteType, RouteLwEnCapType)> for RouteNextHop
source§fn parse_with_param(
buf: &RouteNextHopBuffer<&T>,
(address_family, route_type, encap_type): (AddressFamily, RouteType, RouteLwEnCapType)
) -> Result<RouteNextHop, DecodeError>
fn parse_with_param( buf: &RouteNextHopBuffer<&T>, (address_family, route_type, encap_type): (AddressFamily, RouteType, RouteLwEnCapType) ) -> Result<RouteNextHop, DecodeError>
Deserialize the current type.
source§impl PartialEq for RouteNextHop
impl PartialEq for RouteNextHop
source§fn eq(&self, other: &RouteNextHop) -> bool
fn eq(&self, other: &RouteNextHop) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RouteNextHop
impl StructuralPartialEq for RouteNextHop
Auto Trait Implementations§
impl RefUnwindSafe for RouteNextHop
impl Send for RouteNextHop
impl Sync for RouteNextHop
impl Unpin for RouteNextHop
impl UnwindSafe for RouteNextHop
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