pub struct Info {
pub total: Bytes,
pub used: Bytes,
}
Expand description
System RAM usage.
§Example
use ramusage::Info;
let info = Info::read().unwrap();
println!("{info}"); // 4.00 GiB/16.0 GiB
println!("{info:#}"); // 4.00G/16.0G
Fields§
§total: Bytes
§used: Bytes
Implementations§
Trait Implementations§
impl Copy for Info
Auto Trait Implementations§
impl Freeze for Info
impl RefUnwindSafe for Info
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnwindSafe for Info
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