Struct rtnetlink::NeighbourAddRequest
source · pub struct NeighbourAddRequest { /* private fields */ }
Implementations§
source§impl NeighbourAddRequest
impl NeighbourAddRequest
sourcepub fn state(self, state: u16) -> Self
pub fn state(self, state: u16) -> Self
Set a bitmask of states for the neighbor cache entry.
It should be a combination of NUD_*
constants.
sourcepub fn flags(self, flags: u8) -> Self
pub fn flags(self, flags: u8) -> Self
Set flags for the neighbor cache entry.
It should be a combination of NTF_*
constants.
sourcepub fn ntype(self, ntype: u8) -> Self
pub fn ntype(self, ntype: u8) -> Self
Set attributes applicable to the the neighbor cache entry.
It should be one of NDA_*
constants.
sourcepub fn link_local_address(self, addr: &[u8]) -> Self
pub fn link_local_address(self, addr: &[u8]) -> Self
Set a neighbor cache link layer address (see NDA_LLADDR
for details).
sourcepub fn destination(self, addr: IpAddr) -> Self
pub fn destination(self, addr: IpAddr) -> Self
Set the destination address for the neighbour (see NDA_DST
for details).
sourcepub fn message_mut(&mut self) -> &mut NeighbourMessage
pub fn message_mut(&mut self) -> &mut NeighbourMessage
Return a mutable reference to the request message.
Auto Trait Implementations§
impl Freeze for NeighbourAddRequest
impl !RefUnwindSafe for NeighbourAddRequest
impl Send for NeighbourAddRequest
impl Sync for NeighbourAddRequest
impl Unpin for NeighbourAddRequest
impl !UnwindSafe for NeighbourAddRequest
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