[][src]Enum homie_controller::ValueError

pub enum ValueError {
    Unknown,
    WrongDatatype {
        expected: Datatype,
        actual: Datatype,
    },
    WrongFormat {
        format: String,
    },
    ParseFailed {
        value: String,
        datatype: Datatype,
    },
}

An error encountered while parsing the value or format of a property.

Variants

Unknown

The value of the property or attribute is not yet known, or not set by the device.

WrongDatatype

The method call expected the property to have a particular datatype, but the datatype sent by the device was something different.

Fields of WrongDatatype

expected: Datatype

The datatype expected by the method call.

actual: Datatype

The actual datatype of the property, as sent by the device.

WrongFormat

The format of the property couldn't be parsed or didn't match what was expected by the method call.

Fields of WrongFormat

format: String

The format string of the property.

ParseFailed

The value of the property couldn't be parsed as the expected type.

Fields of ParseFailed

value: String

The string value of the property.

datatype: Datatype

The datatype as which the value was attempted to be parsed.

Trait Implementations

impl Clone for ValueError[src]

impl Debug for ValueError[src]

impl Display for ValueError[src]

impl Eq for ValueError[src]

impl Error for ValueError[src]

impl PartialEq<ValueError> for ValueError[src]

impl StructuralEq for ValueError[src]

impl StructuralPartialEq for ValueError[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> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,