pub struct LinkHandle(/* private fields */);Implementations§
Source§impl LinkHandle
impl LinkHandle
pub fn new(handle: Handle) -> Self
pub fn set(&self, message: LinkMessage) -> LinkSetRequest
pub fn add(&self, message: LinkMessage) -> 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)
Sourcepub fn set_port(&self, message: LinkMessage) -> LinkAddRequest
pub fn set_port(&self, message: LinkMessage) -> LinkAddRequest
The LinkHandle::set() cannot be used for setting bond or bridge port
configuration, RTM_NEWLINK and NLM_F_REQUEST|NLM_F_ACK are required,
Equal to LinkAddRequest::new().set_flags(NLM_F_REQUEST | NLM_F_ACK)
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