pub struct RtnlAddressClient { /* private fields */ }Implementations§
Source§impl RtnlAddressClient
impl RtnlAddressClient
pub fn ipv4_addrs_get(&self, if_id: Option<u32>) -> Result<Vec<Ipv4Addr>>
pub fn ipv6_addrs_get(&self, if_id: Option<u32>) -> Result<Vec<Ipv6Addr>>
pub fn ipv4_addr_set(&self, if_id: u32, prefix: Ipv4Net) -> Result<()>
pub fn ipv6_addr_set(&self, if_id: u32, prefix: Ipv6Net) -> Result<()>
pub fn ipv4_addr_del(&self, if_id: u32, prefix: Ipv4Net) -> Result<()>
pub fn ipv6_addr_del(&self, if_id: u32, prefix: Ipv6Net) -> Result<()>
Trait Implementations§
Source§impl Clone for RtnlAddressClient
impl Clone for RtnlAddressClient
Source§fn clone(&self) -> RtnlAddressClient
fn clone(&self) -> RtnlAddressClient
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 RtnlAddressClient
impl Debug for RtnlAddressClient
Source§impl Hash for RtnlAddressClient
impl Hash for RtnlAddressClient
Source§impl PartialEq for RtnlAddressClient
impl PartialEq for RtnlAddressClient
impl Eq for RtnlAddressClient
impl StructuralPartialEq for RtnlAddressClient
Auto Trait Implementations§
impl Freeze for RtnlAddressClient
impl RefUnwindSafe for RtnlAddressClient
impl Send for RtnlAddressClient
impl Sync for RtnlAddressClient
impl Unpin for RtnlAddressClient
impl UnwindSafe for RtnlAddressClient
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