Struct rtnetlink::NeighbourAddRequest
source · pub struct NeighbourAddRequest { /* private fields */ }
Implementations§
source§impl NeighbourAddRequest
impl NeighbourAddRequest
sourcepub fn state(self, state: NeighbourState) -> Self
pub fn state(self, state: NeighbourState) -> Self
Set a bitmask of states for the neighbor cache entry.
It should be a combination of NUD_*
constants.
sourcepub fn flags(self, flags: Vec<NeighbourFlag>) -> Self
pub fn flags(self, flags: Vec<NeighbourFlag>) -> Self
Set flags for the neighbor cache entry.
It should be a combination of NTF_*
constants.
sourcepub fn kind(self, kind: RouteType) -> Self
pub fn kind(self, kind: RouteType) -> 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 !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