pub enum ThermalError {
Unavailable,
Unsupported,
PermissionDenied,
OutOfRange {
requested: f32,
min: f32,
max: f32,
},
Driver(i32),
}Expand description
Why a GPU control operation didn’t take effect.
Variants§
Backend feature disabled, management library absent, or bad index.
Unsupported
This board / driver doesn’t expose the knob (e.g. laptop power-cap, ROCm clock-lock, a server GPU with no controllable fan).
PermissionDenied
The operation needs elevated privileges — run as root / sudo.
OutOfRange
Requested value is outside the device’s valid range.
Driver(i32)
Driver returned a status we don’t specifically classify.
Trait Implementations§
Source§impl Clone for ThermalError
impl Clone for ThermalError
Source§impl Debug for ThermalError
impl Debug for ThermalError
Source§impl Display for ThermalError
impl Display for ThermalError
Source§impl Error for ThermalError
impl Error for ThermalError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ThermalError
impl PartialEq for ThermalError
impl StructuralPartialEq for ThermalError
Auto Trait Implementations§
impl Freeze for ThermalError
impl RefUnwindSafe for ThermalError
impl Send for ThermalError
impl Sync for ThermalError
impl Unpin for ThermalError
impl UnsafeUnpin for ThermalError
impl UnwindSafe for ThermalError
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