pub struct UsableMemory {
pub host_total: Option<u64>,
pub cgroup_limit: Option<u64>,
}Expand description
Memory available to this process, as best we can determine.
Fields§
§host_total: Option<u64>Total physical memory of the host (or VM), if determinable.
cgroup_limit: Option<u64>Effective cgroup memory limit (Linux only), if one is set.
Implementations§
Trait Implementations§
Source§impl Clone for UsableMemory
impl Clone for UsableMemory
impl Copy for UsableMemory
Auto Trait Implementations§
impl Freeze for UsableMemory
impl RefUnwindSafe for UsableMemory
impl Send for UsableMemory
impl Sync for UsableMemory
impl Unpin for UsableMemory
impl UnsafeUnpin for UsableMemory
impl UnwindSafe for UsableMemory
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