Struct AppDeviceInfo

Source
pub struct AppDeviceInfo {
Show 38 fields pub ext_info: drm_amdgpu_info_device, pub memory_info: drm_amdgpu_memory_info, pub is_apu: bool, pub resizable_bar: bool, pub min_dpm_link: Option<LINK>, pub max_dpm_link: Option<LINK>, pub max_gpu_link: Option<LINK>, pub max_system_link: Option<LINK>, pub min_gpu_clk: u32, pub max_gpu_clk: u32, pub min_mem_clk: u32, pub max_mem_clk: u32, pub marketing_name: String, pub asic_name: ASIC_NAME, pub pci_bus: BUS_INFO, pub sysfs_path: PathBuf, pub edge_temp: Option<HwmonTemp>, pub junction_temp: Option<HwmonTemp>, pub memory_temp: Option<HwmonTemp>, pub power_cap: Option<PowerCap>, pub fan_max_rpm: Option<u32>, pub decode: Option<VideoCapsInfo>, pub encode: Option<VideoCapsInfo>, pub vbios: Option<VbiosInfo>, pub l1_cache_size_kib_per_cu: u32, pub actual_num_tcc_blocks: u32, pub gl1_cache_size_kib_per_sa: u32, pub total_l2_cache_size_kib: u32, pub total_l3_cache_size_mib: u32, pub hw_ip_info_list: Vec<HwIpInfo>, pub ip_die_entries: Vec<IpDieEntry>, pub power_profiles: Vec<PowerProfile>, pub gfx_target_version: Option<String>, pub ecc_memory: bool, pub has_npu: bool, pub smc_fw_version: Option<u32>, pub smu_ip_version: Option<(u8, u8, u8)>, pub fw_versions: Vec<FwVer>,
}

Fields§

§ext_info: drm_amdgpu_info_device§memory_info: drm_amdgpu_memory_info§is_apu: bool§resizable_bar: bool§min_dpm_link: Option<LINK>§max_dpm_link: Option<LINK>§max_gpu_link: Option<LINK>§max_system_link: Option<LINK>§min_gpu_clk: u32§max_gpu_clk: u32§min_mem_clk: u32§max_mem_clk: u32§marketing_name: String§asic_name: ASIC_NAME§pci_bus: BUS_INFO§sysfs_path: PathBuf§edge_temp: Option<HwmonTemp>§junction_temp: Option<HwmonTemp>§memory_temp: Option<HwmonTemp>§power_cap: Option<PowerCap>§fan_max_rpm: Option<u32>§decode: Option<VideoCapsInfo>§encode: Option<VideoCapsInfo>§vbios: Option<VbiosInfo>§l1_cache_size_kib_per_cu: u32§actual_num_tcc_blocks: u32§gl1_cache_size_kib_per_sa: u32§total_l2_cache_size_kib: u32§total_l3_cache_size_mib: u32§hw_ip_info_list: Vec<HwIpInfo>§ip_die_entries: Vec<IpDieEntry>§power_profiles: Vec<PowerProfile>§gfx_target_version: Option<String>§ecc_memory: bool§has_npu: bool§smc_fw_version: Option<u32>§smu_ip_version: Option<(u8, u8, u8)>§fw_versions: Vec<FwVer>

Implementations§

Source§

impl AppDeviceInfo

Source

pub fn new( amdgpu_dev: &DeviceHandle, ext_info: &drm_amdgpu_info_device, memory_info: &drm_amdgpu_memory_info, sensors: &Option<Sensors>, device_path: &DevicePath, ) -> Self

Source

pub fn get_fw_versions(amdgpu_dev: &DeviceHandle) -> Vec<FwVer>

Source

pub fn menu_entry(&self) -> String

Trait Implementations§

Source§

impl Clone for AppDeviceInfo

Source§

fn clone(&self) -> AppDeviceInfo

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AppDeviceInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.