pub struct HardwareDeviceProfile {
pub id: String,
pub family: String,
pub index: usize,
pub total_memory_bytes: Observed<u64>,
pub available_memory_bytes: Observed<u64>,
}Expand description
One logical device visible to an execution backend.
Fields§
§id: StringBackend-stable device identifier.
family: StringBackend-defined device family.
index: usizeProcess-local device index.
total_memory_bytes: Observed<u64>Total physical device capacity, if independently observable.
available_memory_bytes: Observed<u64>Point-in-time available device capacity, if independently observable.
Trait Implementations§
Source§impl Clone for HardwareDeviceProfile
impl Clone for HardwareDeviceProfile
Source§fn clone(&self) -> HardwareDeviceProfile
fn clone(&self) -> HardwareDeviceProfile
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 HardwareDeviceProfile
impl Debug for HardwareDeviceProfile
Source§impl<'de> Deserialize<'de> for HardwareDeviceProfile
impl<'de> Deserialize<'de> for HardwareDeviceProfile
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 HardwareDeviceProfile
Source§impl PartialEq for HardwareDeviceProfile
impl PartialEq for HardwareDeviceProfile
Source§impl Serialize for HardwareDeviceProfile
impl Serialize for HardwareDeviceProfile
impl StructuralPartialEq for HardwareDeviceProfile
Auto Trait Implementations§
impl Freeze for HardwareDeviceProfile
impl RefUnwindSafe for HardwareDeviceProfile
impl Send for HardwareDeviceProfile
impl Sync for HardwareDeviceProfile
impl Unpin for HardwareDeviceProfile
impl UnsafeUnpin for HardwareDeviceProfile
impl UnwindSafe for HardwareDeviceProfile
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