pub struct MemoryRecord {
pub total: u64,
pub available: u64,
}Expand description
The memory of the machine, in bytes.
Fields§
§total: u64The total memory.
available: u64The memory available to start new work without swapping.
Trait Implementations§
Source§impl Clone for MemoryRecord
impl Clone for MemoryRecord
impl Copy for MemoryRecord
Source§impl Debug for MemoryRecord
impl Debug for MemoryRecord
Source§impl<'bytes, Ctx> Decode<'bytes, Ctx> for MemoryRecord
impl<'bytes, Ctx> Decode<'bytes, Ctx> for MemoryRecord
Source§impl<Ctx> Encode<Ctx> for MemoryRecord
impl<Ctx> Encode<Ctx> for MemoryRecord
impl Eq for MemoryRecord
Source§impl Hash for MemoryRecord
impl Hash for MemoryRecord
Source§impl PartialEq for MemoryRecord
impl PartialEq for MemoryRecord
impl StructuralPartialEq for MemoryRecord
Auto Trait Implementations§
impl Freeze for MemoryRecord
impl RefUnwindSafe for MemoryRecord
impl Send for MemoryRecord
impl Sync for MemoryRecord
impl Unpin for MemoryRecord
impl UnsafeUnpin for MemoryRecord
impl UnwindSafe for MemoryRecord
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.