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: String
Accelerator ID
accelerator_type: AcceleratorType
Accelerator type
name: String
Device name/model
vendor: String
Vendor information
revision: String
Hardware revision
driver_version: String
Driver version
capabilities: AcceleratorCapabilities
Capabilities
is_available: bool
Is the accelerator currently available
utilization_percent: f32
Current utilization percentage
temperature_c: f32
Temperature 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