[][src]Enum lv2rs_midi::TryFromError

pub enum TryFromError {
    UnknownMessage,
    SystemExclusiveMessage,
    SliceToShort,
    NoStatusByte,
    InteriorStatusByte,
}

Errors that may arise when using MidiMessage::try_from

Variants

UnknownMessage

The first byte of the slice does not correspond to a known MIDI status byte.

SystemExclusiveMessage

The message is a system-exclusive message.

Please use the SystemExclusiveMessage struct to interpret system-exclusive messages.

SliceToShort

The slice is to short for the message, or the message is incomplete.

NoStatusByte

The first byte of the slice is not a status byte.

InteriorStatusByte

There are other status bytes in the slice except from the first one.

LV2 does not allow multiple messages in one atom.

Trait Implementations

impl Debug for TryFromError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto 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<T> Borrow for T where
    T: ?Sized
[src]

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

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