#[non_exhaustive]pub struct RouteNextHop {
pub flags: RouteNextHopFlags,
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: RouteNextHopFlags
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
type Error = RouteError
Source§fn parse_with_param(
buf: &RouteNextHopBuffer<&T>,
(address_family, route_type, encap_type): (AddressFamily, RouteType, RouteLwEnCapType),
) -> Result<RouteNextHop, RouteError>
fn parse_with_param( buf: &RouteNextHopBuffer<&T>, (address_family, route_type, encap_type): (AddressFamily, RouteType, RouteLwEnCapType), ) -> Result<RouteNextHop, RouteError>
Deserialize the current type.
Source§impl PartialEq for RouteNextHop
impl PartialEq for RouteNextHop
impl Eq for RouteNextHop
impl StructuralPartialEq for RouteNextHop
Auto Trait Implementations§
impl Freeze for RouteNextHop
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)