pub struct HostResources {
pub total_ram_kib: u64,
pub cpus: u32,
}Expand description
Raw host resources, before any budgeting.
Fields§
§total_ram_kib: u64Total physical memory, in kibibytes.
cpus: u32Number of logical CPUs.
Trait Implementations§
Source§impl Clone for HostResources
impl Clone for HostResources
Source§fn clone(&self) -> HostResources
fn clone(&self) -> HostResources
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HostResources
Auto Trait Implementations§
impl Freeze for HostResources
impl RefUnwindSafe for HostResources
impl Send for HostResources
impl Sync for HostResources
impl Unpin for HostResources
impl UnsafeUnpin for HostResources
impl UnwindSafe for HostResources
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