[][src]Enum lv2_state::StateErr

pub enum StateErr {
    Unknown,
    BadCallback,
    BadData,
    BadType,
    BadFlags,
    NoFeature,
    NoProperty,
    NoSpace,
    PathNotUTF8,
    HostError,
}

Kinds of errors that may occur in the crate.

Variants

Unknown

The kind of the error is unknown or doesn't have a representation.

BadCallback

A callback function pointer of a method is bad.

BadData

Retrieved data is invalid.

BadType

The retrieved data doesn't have the correct type.

BadFlags

The flags a method was called with are invalid.

NoFeature

A feature the plugin requested is missing.

NoProperty

A property the plugin is requesting doesn't exist.

NoSpace

There isn't enough memory available to execute the task.

PathNotUTF8

A path that's been used as a parameter is not encoded in UTF-8.

HostError

The host does not comply to the specification.

Implementations

impl StateErr[src]

pub fn from(value: LV2_State_Status) -> Result<(), StateErr>[src]

Convert a raw status flag to a result or possible error value.

pub fn into(result: Result<(), StateErr>) -> LV2_State_Status[src]

Convert a result to a raw status flag.

Trait Implementations

impl Clone for StateErr[src]

impl Copy for StateErr[src]

impl Debug for StateErr[src]

impl Eq for StateErr[src]

impl PartialEq<StateErr> for StateErr[src]

impl StructuralEq for StateErr[src]

impl StructuralPartialEq for StateErr[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, 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.