Enum tcn75a::Tcn75aError [−][src]
pub enum Tcn75aError<RE, WE> { OutOfRange, LimitError { reason: LimitError, values: (I8F8, I8F8), }, RegPtrError(WE), ReadError(RE), WriteError(WE), }
Expand description
Enum for describing possible error conditions when reading/writing a TCN75A temperature sensor.
Variants
A temperature value was read successfully, but some bits were set that should always read as zero. This may indicate that you are not reading a TCN75A.
The temperature limit registers were read successfully, but the values read were invalid
(violate the invariants). Contains a LimitError
describing why the values are invalid,
and a tuple of (I8F8, I8F8)
, representing the values which were read; the Hysteresis (Low)
value is the left element, and the Limit-Set (High) is the right element.
Show fields
Fields of LimitError
reason: LimitError
values: (I8F8, I8F8)
The register pointer could not be set to read the desired register. Contains the error
reason from Write::Error
. For register writes, WriteError
is returned if the register
pointer failed to update.
Reading the desired register via embedded_hal
failed. Contains a Read::Error
,
propagated from the embedded_hal
implementation.
Writing the desired register via embedded_hal
failed. Contains a Write::Error
,
propagated from the embedded_hal
implementation.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<RE, WE> RefUnwindSafe for Tcn75aError<RE, WE> where
RE: RefUnwindSafe,
WE: RefUnwindSafe,
impl<RE, WE> Send for Tcn75aError<RE, WE> where
RE: Send,
WE: Send,
impl<RE, WE> Sync for Tcn75aError<RE, WE> where
RE: Sync,
WE: Sync,
impl<RE, WE> Unpin for Tcn75aError<RE, WE> where
RE: Unpin,
WE: Unpin,
impl<RE, WE> UnwindSafe for Tcn75aError<RE, WE> where
RE: UnwindSafe,
WE: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Performs the conversion.
Performs the conversion.
Casts the value.
type Output = T
type Output = T
Should always be Self
Casts the value.
Casts the value.
Casts the value.