Enum bsec::error::ConversionError[][src]

pub enum ConversionError {
    InvalidSampleRate(f64),
    InvalidVirtualSensorId(bsec_virtual_sensor_t),
    InvalidAccuracy(u8),
}

An error converting data from the Bosch BSEC library to the bsec crate.

Variants

InvalidSampleRate(f64)

The sample rate was invalid.

The Bosch BSEC library returned a sample rate not listed in crate::SampleRate.

InvalidVirtualSensorId(bsec_virtual_sensor_t)

The virtual sensor ID was invalid.

The Bosch BSEC library returned a virtual sensor ID not correspending to any crate::OutputKind.

InvalidAccuracy(u8)

The accuracy value was invalid.

The Bosch BSEC library returned an accuracy value not listed in crate::Accuracy.

Trait Implementations

impl Clone for ConversionError[src]

impl Debug for ConversionError[src]

impl Display for ConversionError[src]

impl Error for ConversionError[src]

impl<E: Debug> From<ConversionError> for Error<E>[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.