#[non_exhaustive]pub struct NextHop {
pub flags: NextHopFlags,
pub hops: u8,
pub interface_id: u32,
pub nlas: Vec<Nla>,
}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: NextHopFlagsNext-hop flags (see NextHopFlags)
hops: u8Next-hop priority
interface_id: u32Interface index for the next-hop
nlas: Vec<Nla>Attributes
Implementations§
Trait Implementations§
Source§impl<'a, T: AsRef<[u8]>> Parseable<NextHopBuffer<&'a T>> for NextHop
impl<'a, T: AsRef<[u8]>> Parseable<NextHopBuffer<&'a T>> for NextHop
Source§fn parse(buf: &NextHopBuffer<&T>) -> Result<NextHop, DecodeError>
fn parse(buf: &NextHopBuffer<&T>) -> Result<NextHop, DecodeError>
Deserialize the current type.
impl Eq for NextHop
impl StructuralPartialEq for NextHop
Auto Trait Implementations§
impl Freeze for NextHop
impl RefUnwindSafe for NextHop
impl Send for NextHop
impl Sync for NextHop
impl Unpin for NextHop
impl UnwindSafe for NextHop
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