pub struct GpuDeviceConfig {
pub device_name: String,
pub genpd_device_name: String,
pub available_frequencies_hz: Vec<u64>,
pub default_freq_hz: u64,
}Expand description
Container-provided configuration for GPU sysfs device registration and operating point frequencies.
Fields§
§device_name: StringLinux platform/devfreq sysfs device name (e.g. "34f00000.gpu0").
genpd_device_name: StringLinux runtime PM genpd sysfs device name (e.g. "genpd:0:34f00000.gpu0").
available_frequencies_hz: Vec<u64>Operating point frequencies sorted ascending in Hz.
default_freq_hz: u64Default / baseline GPU clock frequency in Hz when no floor vote exceeds it.
Trait Implementations§
Source§impl Clone for GpuDeviceConfig
impl Clone for GpuDeviceConfig
Source§impl Debug for GpuDeviceConfig
impl Debug for GpuDeviceConfig
Source§impl Default for GpuDeviceConfig
impl Default for GpuDeviceConfig
impl Eq for GpuDeviceConfig
Source§impl PartialEq for GpuDeviceConfig
impl PartialEq for GpuDeviceConfig
impl StructuralPartialEq for GpuDeviceConfig
Auto Trait Implementations§
impl Freeze for GpuDeviceConfig
impl RefUnwindSafe for GpuDeviceConfig
impl Send for GpuDeviceConfig
impl Sync for GpuDeviceConfig
impl Unpin for GpuDeviceConfig
impl UnsafeUnpin for GpuDeviceConfig
impl UnwindSafe for GpuDeviceConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]§impl<T> IntoAny for T
impl<T> IntoAny for T
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