pub struct HardwareProfile {
pub schema_version: u32,
pub operating_system: String,
pub architecture: String,
pub logical_cpu_count: Observed<u64>,
pub physical_memory_bytes: Observed<u64>,
pub available_memory_bytes: Observed<u64>,
pub physical_memory_semantics: HardwareMemorySemantics,
pub backends: Vec<HardwareBackendProfile>,
}Expand description
Hardware and memory observations used as automatic-planning inputs.
Fields§
§schema_version: u32Version of this serialized hardware schema.
operating_system: StringRust target operating-system name.
architecture: StringRust target architecture name.
logical_cpu_count: Observed<u64>Logical CPU parallelism available to the process.
physical_memory_bytes: Observed<u64>Installed host or unified physical memory.
available_memory_bytes: Observed<u64>Point-in-time host or unified available memory.
physical_memory_semantics: HardwareMemorySemanticsWhether logical host and accelerator allocations share capacity.
backends: Vec<HardwareBackendProfile>Execution backends visible to the selected adapter.
Trait Implementations§
Source§impl Clone for HardwareProfile
impl Clone for HardwareProfile
Source§fn clone(&self) -> HardwareProfile
fn clone(&self) -> HardwareProfile
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 moreSource§impl Debug for HardwareProfile
impl Debug for HardwareProfile
Source§impl<'de> Deserialize<'de> for HardwareProfile
impl<'de> Deserialize<'de> for HardwareProfile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HardwareProfile
Source§impl PartialEq for HardwareProfile
impl PartialEq for HardwareProfile
Source§impl Serialize for HardwareProfile
impl Serialize for HardwareProfile
impl StructuralPartialEq for HardwareProfile
Auto Trait Implementations§
impl Freeze for HardwareProfile
impl RefUnwindSafe for HardwareProfile
impl Send for HardwareProfile
impl Sync for HardwareProfile
impl Unpin for HardwareProfile
impl UnsafeUnpin for HardwareProfile
impl UnwindSafe for HardwareProfile
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