pub struct AcceleratorInfo {
pub id: String,
pub accelerator_type: AcceleratorType,
pub name: String,
pub vendor: String,
pub revision: String,
pub driver_version: String,
pub capabilities: AcceleratorCapabilities,
pub is_available: bool,
pub utilization_percent: f32,
pub temperature_c: f32,
}Expand description
Specialized hardware accelerator information
Fields§
§id: StringAccelerator ID
accelerator_type: AcceleratorTypeAccelerator type
name: StringDevice name/model
vendor: StringVendor information
revision: StringHardware revision
driver_version: StringDriver version
capabilities: AcceleratorCapabilitiesCapabilities
is_available: boolIs the accelerator currently available
utilization_percent: f32Current utilization percentage
temperature_c: f32Temperature in Celsius
Trait Implementations§
Source§impl Clone for AcceleratorInfo
impl Clone for AcceleratorInfo
Source§fn clone(&self) -> AcceleratorInfo
fn clone(&self) -> AcceleratorInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 AcceleratorInfo
impl Debug for AcceleratorInfo
Auto Trait Implementations§
impl Freeze for AcceleratorInfo
impl RefUnwindSafe for AcceleratorInfo
impl Send for AcceleratorInfo
impl Sync for AcceleratorInfo
impl Unpin for AcceleratorInfo
impl UnwindSafe for AcceleratorInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more