pub struct GpuInfo {
pub devices: Vec<GpuDevice>,
pub aux_attributes: Option<Value>,
pub feature_status: Option<Value>,
pub driver_bug_workarounds: Vec<String>,
pub video_decoding: Vec<VideoDecodeAcceleratorCapability>,
pub video_encoding: Vec<VideoEncodeAcceleratorCapability>,
pub image_decoding: Vec<ImageDecodeAcceleratorCapability>,
}
Expand description
Provides information about the GPU(s) on the system. GPUInfo
Fields§
§devices: Vec<GpuDevice>
The graphics devices on the system. Element 0 is the primary GPU.
aux_attributes: Option<Value>
An optional dictionary of additional GPU related attributes.
feature_status: Option<Value>
An optional dictionary of graphics features and their status.
driver_bug_workarounds: Vec<String>
An optional array of GPU driver bug workarounds.
video_decoding: Vec<VideoDecodeAcceleratorCapability>
Supported accelerated video decoding capabilities.
video_encoding: Vec<VideoEncodeAcceleratorCapability>
Supported accelerated video encoding capabilities.
image_decoding: Vec<ImageDecodeAcceleratorCapability>
Supported accelerated image decoding capabilities.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GpuInfo
impl<'de> Deserialize<'de> for GpuInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GpuInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GpuInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for GpuInfo
impl Serialize for GpuInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for GpuInfo
Auto Trait Implementations§
impl Freeze for GpuInfo
impl RefUnwindSafe for GpuInfo
impl Send for GpuInfo
impl Sync for GpuInfo
impl Unpin for GpuInfo
impl UnwindSafe for GpuInfo
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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