[−][src]Struct rtnetlink::NeighbourAddRequest
Implementations
impl NeighbourAddRequest
[src]
pub fn state(mut self: Self, state: u16) -> Self
[src]
Set a bitmask of states for the neighbor cache entry.
It should be a combination of NUD_*
constants.
pub fn flags(mut self: Self, flags: u8) -> Self
[src]
Set flags for the neighbor cache entry.
It should be a combination of NTF_*
constants.
pub fn ntype(mut self: Self, ntype: u8) -> Self
[src]
Set attributes applicable to the the neighbor cache entry.
It should be one of NDA_*
constants.
pub fn link_local_address(mut self: Self, addr: &[u8]) -> Self
[src]
Set a neighbor cache link layer address (see NDA_LLADDR
for details).
pub async fn execute(self) -> Result<(), Error>
[src]
Execute the request.
pub fn message_mut(&mut self) -> &mut NeighbourMessage
[src]
Return a mutable reference to the request message.
Auto Trait Implementations
impl !RefUnwindSafe for NeighbourAddRequest
[src]
impl Send for NeighbourAddRequest
[src]
impl Sync for NeighbourAddRequest
[src]
impl Unpin for NeighbourAddRequest
[src]
impl !UnwindSafe for NeighbourAddRequest
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,