Struct rtnetlink::LinkHandle
source · pub struct LinkHandle(/* private fields */);
Implementations§
source§impl LinkHandle
impl LinkHandle
pub fn new(handle: Handle) -> Self
pub fn set(&self, index: u32) -> LinkSetRequest
pub fn add(&self) -> LinkAddRequest
pub fn property_add(&self, index: u32) -> LinkNewPropRequest
pub fn property_del(&self, index: u32) -> LinkDelPropRequest
pub fn del(&mut self, index: u32) -> LinkDelRequest
sourcepub fn get(&mut self) -> LinkGetRequest
pub fn get(&mut self) -> LinkGetRequest
Retrieve the list of links (equivalent to ip link show
)
Auto Trait Implementations§
impl Freeze for LinkHandle
impl !RefUnwindSafe for LinkHandle
impl Send for LinkHandle
impl Sync for LinkHandle
impl Unpin for LinkHandle
impl !UnwindSafe for LinkHandle
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