pub struct RtnlLinkClient { /* private fields */ }Implementations§
Source§impl RtnlLinkClient
impl RtnlLinkClient
pub fn interface_set_up(&self, if_id: u32) -> Result<()>
pub fn interface_set_down(&self, if_id: u32) -> Result<()>
pub fn interface_set_admin_state(&self, if_id: u32, up: bool) -> Result<()>
pub fn interface_set_promiscuous(&self, if_id: u32, enable: bool) -> Result<()>
pub fn interface_set_arp(&self, if_id: u32, enable: bool) -> Result<()>
pub fn interface_set_mtu(&self, if_id: u32, mtu: u32) -> Result<()>
pub fn interface_rename(&self, if_id: u32, new_name: &str) -> Result<()>
pub fn interface_get(&self, if_id: u32) -> Result<Interface>
pub fn interface_get_by_name(&self, name: &str) -> Result<Interface>
pub fn mac_addr_get(&self, if_id: u32) -> Result<Option<MacAddr>>
pub fn mtu_get(&self, if_id: u32) -> Result<u32>
pub fn mac_addr_set( &self, if_id: u32, link_layer_type: LinkLayerType, mac_addr: MacAddr, ) -> Result<()>
pub fn interface_set_all_multicast( &self, if_id: u32, enable: bool, ) -> Result<()>
pub fn interface_list(&self) -> Result<Vec<Interface>>
Trait Implementations§
Source§impl Clone for RtnlLinkClient
impl Clone for RtnlLinkClient
Source§fn clone(&self) -> RtnlLinkClient
fn clone(&self) -> RtnlLinkClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RtnlLinkClient
impl Debug for RtnlLinkClient
Source§impl Hash for RtnlLinkClient
impl Hash for RtnlLinkClient
Source§impl PartialEq for RtnlLinkClient
impl PartialEq for RtnlLinkClient
impl Eq for RtnlLinkClient
impl StructuralPartialEq for RtnlLinkClient
Auto Trait Implementations§
impl Freeze for RtnlLinkClient
impl RefUnwindSafe for RtnlLinkClient
impl Send for RtnlLinkClient
impl Sync for RtnlLinkClient
impl Unpin for RtnlLinkClient
impl UnwindSafe for RtnlLinkClient
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