pub enum RyzenAdjError {
InitError {
errno: Errno,
},
InitTableError(i32),
GetNaN,
UnknowFamily(i32),
AdjFamilyNotSupported,
AdjMemoryAccessError,
AdjSmuRejected,
AdjSmuTimeout,
AdjSmuUnsupported,
AdjUnknowError(i32),
AdjValueOutOfRange,
}Expand description
Enumerates the possible errors returned from ryzenadj
Variants§
InitError
ryzenadj struct init failed, provides errno returned by the library
InitTableError(i32)
this error is returned when ryzenadj can not read out values from msr, setting values might still work
GetNaN
reading given value returned a NaN float
UnknowFamily(i32)
given cpu family is not supported by this crate
AdjFamilyNotSupported
given cpu family is not supported by ryzenadj
AdjMemoryAccessError
ryzenadj encured a memory access error
AdjSmuRejected
the cpu smu rejected the given value
AdjSmuTimeout
the cpu smu timeout out when trying to set the value
AdjSmuUnsupported
the cpu smu responed with setting this value is unsupported
AdjUnknowError(i32)
unknow error ocured when tring to set give value
AdjValueOutOfRange
given value is out of allowed range
Trait Implementations§
Source§impl Debug for RyzenAdjError
impl Debug for RyzenAdjError
Source§impl Display for RyzenAdjError
impl Display for RyzenAdjError
Source§impl Error for RyzenAdjError
impl Error for RyzenAdjError
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()
Auto Trait Implementations§
impl Freeze for RyzenAdjError
impl RefUnwindSafe for RyzenAdjError
impl Send for RyzenAdjError
impl Sync for RyzenAdjError
impl Unpin for RyzenAdjError
impl UnwindSafe for RyzenAdjError
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