pub struct AllSystemInfo {Show 15 fields
pub hostname: Option<String>,
pub kernel_version: Option<String>,
pub os_version: Option<String>,
pub name: Option<String>,
pub total_memory: u64,
pub used_memory: u64,
pub total_swap: u64,
pub used_swap: u64,
pub cpus: Vec<Cpu>,
pub cpu_count: usize,
pub disks: Vec<Disk>,
pub networks: Vec<Network>,
pub components: Vec<Component>,
pub processes: Vec<Process>,
pub batteries: Vec<Battery>,
}Fields§
§hostname: Option<String>§kernel_version: Option<String>§os_version: Option<String>§name: Option<String>§total_memory: u64§used_memory: u64§total_swap: u64§used_swap: u64§cpus: Vec<Cpu>§cpu_count: usize§disks: Vec<Disk>§networks: Vec<Network>§components: Vec<Component>§processes: Vec<Process>§batteries: Vec<Battery>Trait Implementations§
Source§impl Debug for AllSystemInfo
impl Debug for AllSystemInfo
Source§impl<'de> Deserialize<'de> for AllSystemInfo
impl<'de> Deserialize<'de> for AllSystemInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AllSystemInfo
impl RefUnwindSafe for AllSystemInfo
impl Send for AllSystemInfo
impl Sync for AllSystemInfo
impl Unpin for AllSystemInfo
impl UnwindSafe for AllSystemInfo
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
Source§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
Source§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more