pub struct NetworkMonitor { /* private fields */ }Implementations§
Source§impl NetworkMonitor
impl NetworkMonitor
pub fn new() -> Self
pub fn set_interface(&self, interface: Option<String>)
pub fn selected_interface(&self) -> Option<String>
pub fn available_interfaces(&self) -> Vec<String>
pub fn get_stats(&self) -> NetworkStats
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for NetworkMonitor
impl RefUnwindSafe for NetworkMonitor
impl Send for NetworkMonitor
impl Sync for NetworkMonitor
impl Unpin for NetworkMonitor
impl UnsafeUnpin for NetworkMonitor
impl UnwindSafe for NetworkMonitor
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