pub struct Device {
pub total_memory: Option<u64>,
pub available_memory: Option<u64>,
pub cpus: usize,
}Expand description
The machine’s memory and CPUs, as the automatic budgets see them.
Fields§
§total_memory: Option<u64>Physical memory (lowered to a cgroup v2 memory.max), when known.
available_memory: Option<u64>Memory available right now (available_memory), when known.
cpus: usizeImplementations§
Trait Implementations§
impl Copy for Device
impl Eq for Device
impl StructuralPartialEq for Device
Auto Trait Implementations§
impl Forget for Device
impl Freeze for Device
impl Move for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnsafeUnpin for Device
impl UnwindSafe for Device
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