pub struct Device { /* private fields */ }
Implementations
sourceimpl Device
impl Device
Implementation for the struct Device. This one is used to get system and network info about the device.
pub fn new() -> Self
sourcepub fn refresh_all(&mut self)
pub fn refresh_all(&mut self)
Refresh all from system
sourcepub fn get_interfaces(&mut self) -> Vec<Interface>
pub fn get_interfaces(&mut self) -> Vec<Interface>
Get network interfaces
sourcepub fn print_system_info(&mut self, do_tab: bool)
pub fn print_system_info(&mut self, do_tab: bool)
Print system information
sourcepub fn print_network_info(&mut self)
pub fn print_network_info(&mut self)
Print network info
sourcepub fn print_cpus_info(&mut self)
pub fn print_cpus_info(&mut self)
Print CPUs info
sourcepub fn print_disks_info(&mut self)
pub fn print_disks_info(&mut self)
Print disks info
sourcepub fn print_processes(&mut self)
pub fn print_processes(&mut self)
Print all process info I need, not in a struct yet, because la flemme TODO : order by pid
sourcepub fn print_all_info(&mut self)
pub fn print_all_info(&mut self)
Print all info about a device
Auto Trait Implementations
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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