pub struct GpuPollResult {
pub name: String,
pub temp: f32,
pub usage: f32,
pub memory_total: u64,
pub memory_used: u64,
}Expand description
GpuPollResult contains gpu device data obtained by polling.
Due to the implementation of nvidia packages, it is not possible to filter for specific device information per-poll, and so a single gpu poll returns all device information.
Fields§
§name: String§temp: f32§usage: f32§memory_total: u64§memory_used: u64Trait Implementations§
Source§impl Clone for GpuPollResult
impl Clone for GpuPollResult
Source§fn clone(&self) -> GpuPollResult
fn clone(&self) -> GpuPollResult
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 GpuPollResult
impl Debug for GpuPollResult
Auto Trait Implementations§
impl Freeze for GpuPollResult
impl RefUnwindSafe for GpuPollResult
impl Send for GpuPollResult
impl Sync for GpuPollResult
impl Unpin for GpuPollResult
impl UnwindSafe for GpuPollResult
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