pub struct SharedNetInfo(/* private fields */);Implementations§
pub async fn new() -> Self
pub async fn get_interfaces(&self) -> Vec<String>
pub async fn get_ifindexes(&self) -> Vec<u32>
pub async fn get_linkaddr_by_ifidx(&self, ifidx: u32) -> Option<LinkLayer>
pub async fn get_if_prefixes(&self) -> Vec<(IpAddr, u8)>
pub async fn get_prefixes_by_ifidx( &self, ifidx: u32, ) -> Option<Vec<(IpAddr, u8)>>
pub async fn get_ipv4_by_ifidx(&self, ifidx: u32) -> Option<Ipv4Addr>
pub async fn get_mtu_by_ifidx(&self, ifidx: u32) -> Option<u32>
pub async fn get_name_by_ifidx(&self, ifidx: u32) -> Option<String>
pub async fn get_safe_name_by_ifidx(&self, ifidx: u32) -> String
pub async fn get_flags_by_ifidx(&self, ifidx: u32) -> Option<IfFlags>
pub async fn get_ipv4_default_route( &self, ) -> Option<(Option<Ipv4Addr>, Option<u32>)>
pub async fn get_ipv6_default_route( &self, ) -> Option<(Option<Ipv6Addr>, Option<u32>)>
Trait Implementations§
Source§fn clone(&self) -> SharedNetInfo
fn clone(&self) -> SharedNetInfo
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 moreAuto Trait Implementations§
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