pub enum ThermometerError {
Io(Error),
Sensor(SensorError),
}Expand description
What can go wrong reading a thermometer through the kernel.
Variants§
Io(Error)
The file could not be read: the overlay is off, the device is gone, or the process lacks permission.
Sensor(SensorError)
The file was read but its scratchpad did not decode.
Trait Implementations§
Source§impl Debug for ThermometerError
impl Debug for ThermometerError
Source§impl Display for ThermometerError
impl Display for ThermometerError
Source§impl Error for ThermometerError
impl Error for ThermometerError
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 From<ThermometerError> for Error
impl From<ThermometerError> for Error
Source§fn from(error: ThermometerError) -> Self
fn from(error: ThermometerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ThermometerError
impl !UnwindSafe for ThermometerError
impl Freeze for ThermometerError
impl Send for ThermometerError
impl Sync for ThermometerError
impl Unpin for ThermometerError
impl UnsafeUnpin for ThermometerError
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