[][src]Enum tsic::TsicError

pub enum TsicError {
    ParityCheckFailed,
    PinReadError,
    PinWriteError,
    TemperatureOutOfRange {
        measured: u16,
    },
}

Contains all errors that can happen during a reading from the sensor.

Variants

ParityCheckFailed

The parity check for one of the packets failed.

This might be a temporary issue, so attempting to perform another read might resolve the error.

PinReadError

Failed to read the high/low state of signal the pin.

PinWriteError

Failed to set the high/low state of the vdd pin.

TemperatureOutOfRange

The temperature reading is out of range.

Note that it includes the raw value (not in celsius!) for debugging purposes.

Fields of TemperatureOutOfRange

measured: u16

The (wrong) raw measured temperature.

Trait Implementations

impl Debug for TsicError[src]

Auto Trait Implementations

impl Send for TsicError

impl Sync for TsicError

impl Unpin for TsicError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.