Gpu

Struct Gpu 

Source
pub struct Gpu { /* private fields */ }

Implementations§

Source§

impl Gpu

Source

pub fn new(gpu: PhysicalGpu) -> Self

Source

pub fn into_inner(self) -> PhysicalGpu

Source

pub fn inner(&self) -> &PhysicalGpu

Source

pub fn enumerate() -> Result<Vec<Self>>

Source

pub fn info(&self) -> Result<GpuInfo>

Source

pub fn status(&self) -> Result<GpuStatus>

Source

pub fn settings(&self) -> Result<GpuSettings>

Source

pub fn set_voltage_boost(&self, boost: Percentage) -> Result<()>

Source

pub fn set_power_limits<I: Iterator<Item = Percentage>>( &self, limits: I, ) -> Result<()>

Source

pub fn set_sensor_limits<I: Iterator<Item = Celsius>>( &self, limits: I, ) -> Result<()>

Source

pub fn set_cooler_levels<I: Iterator<Item = CoolerLevel>>( &self, levels: I, ) -> Result<()>

Source

pub fn reset_cooler_levels(&self) -> Result<()>

Source

pub fn set_vfp<I: Iterator<Item = (usize, KilohertzDelta)>, M: Iterator<Item = (usize, KilohertzDelta)>>( &self, clock_deltas: I, mem_deltas: M, ) -> Result<()>

Source

pub fn set_vfp_lock(&self, voltage: Microvolts) -> Result<()>

Source

pub fn reset_vfp_lock(&self) -> Result<()>

Source

pub fn reset_vfp(&self) -> Result<()>

Auto Trait Implementations§

§

impl Freeze for Gpu

§

impl RefUnwindSafe for Gpu

§

impl Send for Gpu

§

impl !Sync for Gpu

§

impl Unpin for Gpu

§

impl UnwindSafe for Gpu

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> 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, 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.