pub enum PwrError {
NoSysfs(PathBuf),
Error,
GenericError(Error),
ParseError(String),
NotImplemented(String),
InvalidSoC(f32),
InvalidHealth(f32),
NoBattery(PathBuf),
ParseTypeError(String),
}
Variants§
NoSysfs(PathBuf)
Error
GenericError(Error)
ParseError(String)
NotImplemented(String)
InvalidSoC(f32)
InvalidHealth(f32)
NoBattery(PathBuf)
ParseTypeError(String)
Trait Implementations§
Source§impl Error for PwrError
impl Error for PwrError
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 PwrError
impl !RefUnwindSafe for PwrError
impl Send for PwrError
impl Sync for PwrError
impl Unpin for PwrError
impl !UnwindSafe for PwrError
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