pub struct Networks { /* private fields */ }
Expand description
Networks interfaces.
use sysinfo::{NetworksExt, System, SystemExt};
let s = System::new_all();
let networks = s.networks();
Trait Implementations
sourceimpl<'a> IntoIterator for &'a Networks
impl<'a> IntoIterator for &'a Networks
sourceimpl NetworksExt for Networks
impl NetworksExt for Networks
sourcefn iter<'a>(&'a self) -> NetworksIter<'a>ⓘNotable traits for NetworksIter<'a>impl<'a> Iterator for NetworksIter<'a> type Item = (&'a String, &'a NetworkData);
fn iter<'a>(&'a self) -> NetworksIter<'a>ⓘNotable traits for NetworksIter<'a>impl<'a> Iterator for NetworksIter<'a> type Item = (&'a String, &'a NetworkData);
Returns an iterator over the network interfaces. Read more
sourcefn refresh_networks_list(&mut self)
fn refresh_networks_list(&mut self)
Refreshes the network interfaces list. Read more
Auto Trait Implementations
impl RefUnwindSafe for Networks
impl Send for Networks
impl Sync for Networks
impl Unpin for Networks
impl UnwindSafe for Networks
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more