Struct rtnetlink::NeighbourHandle
source · pub struct NeighbourHandle(/* private fields */);
Implementations§
source§impl NeighbourHandle
impl NeighbourHandle
pub fn new(handle: Handle) -> Self
sourcepub fn get(&self) -> NeighbourGetRequest
pub fn get(&self) -> NeighbourGetRequest
List neighbour entries (equivalent to ip neighbour show
)
sourcepub fn add(&self, index: u32, destination: IpAddr) -> NeighbourAddRequest
pub fn add(&self, index: u32, destination: IpAddr) -> NeighbourAddRequest
Add a new neighbour entry (equivalent to ip neighbour add
)
sourcepub fn add_bridge(&self, index: u32, lla: &[u8]) -> NeighbourAddRequest
pub fn add_bridge(&self, index: u32, lla: &[u8]) -> NeighbourAddRequest
Add a new fdb entry (equivalent to bridge fdb add
)
sourcepub fn del(&self, message: NeighbourMessage) -> NeighbourDelRequest
pub fn del(&self, message: NeighbourMessage) -> NeighbourDelRequest
Delete a neighbour entry (equivalent to ip neighbour delete
)
Auto Trait Implementations§
impl Freeze for NeighbourHandle
impl !RefUnwindSafe for NeighbourHandle
impl Send for NeighbourHandle
impl Sync for NeighbourHandle
impl Unpin for NeighbourHandle
impl !UnwindSafe for NeighbourHandle
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