pub struct NextHop {
pub flags: NextHopFlags,
pub hops: u8,
pub interface_id: u32,
pub nlas: Vec<Nla>,
}
Fields
flags: NextHopFlags
Next-hop flags (see NextHopFlags
)
hops: u8
Next-hop priority
interface_id: u32
Interface index for the next-hop
nlas: Vec<Nla>
Attributes
Implementations
Trait Implementations
sourceimpl<'a, T: AsRef<[u8]>> Parseable<NextHopBuffer<&'a T>> for NextHop
impl<'a, T: AsRef<[u8]>> Parseable<NextHopBuffer<&'a T>> for NextHop
sourcefn parse(buf: &NextHopBuffer<&T>) -> Result<NextHop, DecodeError>
fn parse(buf: &NextHopBuffer<&T>) -> Result<NextHop, DecodeError>
Deserialize the current type.
impl Eq for NextHop
impl StructuralEq for NextHop
impl StructuralPartialEq for NextHop
Auto Trait Implementations
impl RefUnwindSafe for NextHop
impl Send for NextHop
impl Sync for NextHop
impl Unpin for NextHop
impl UnwindSafe for NextHop
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more