pub struct CPUInfoDebug {
pub uptime: u32,
pub disk_usage: u8,
pub cpu_freq: [u32; 4],
}
Fields§
§uptime: u32
§disk_usage: u8
§cpu_freq: [u32; 4]
Implementations§
Source§impl CPUInfoDebug
impl CPUInfoDebug
pub fn new() -> Self
pub fn read_info() -> CPUInfoDebug
pub fn read_uptime(sys: &System) -> u32
pub fn read_disk_usage(sys: &System) -> u8
pub fn read_cpu_load()
pub fn read_cpu_freq(sys: &System) -> [u32; 4]
Trait Implementations§
Source§impl Debug for CPUInfoDebug
impl Debug for CPUInfoDebug
Source§impl<'de> Deserialize<'de> for CPUInfoDebug
impl<'de> Deserialize<'de> for CPUInfoDebug
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 CPUInfoDebug
impl RefUnwindSafe for CPUInfoDebug
impl Send for CPUInfoDebug
impl Sync for CPUInfoDebug
impl Unpin for CPUInfoDebug
impl UnwindSafe for CPUInfoDebug
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<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