[][src]Struct midi_control::sysex::USysExDecoder

pub struct USysExDecoder<'a>(_);

Universal SysEx decoder.

Implementations

impl<'_> USysExDecoder<'_>[src]

pub fn decode(msg: &MidiMessage) -> Option<USysExDecoder<'_>>[src]

Creates a new decoder for the message.

Error

Returns None if the message isn't a Universal System Exclusive

pub fn is_non_realtime(&self) -> bool[src]

Tell if message is non realtime

pub fn target_device(&self) -> u8[src]

Returns the target device

Panic

If the message isn't a Universal System Exclusive it will panic. The decode() function is supposed to check for it.

pub fn subid(&self) -> [u8; 2][src]

Returns the subid for the Universel System Exclusive message.

Panic

If the message isn't a Universal System Exclusive it will panic. The decode() function is supposed to check for it.

pub fn general_info_reply_manufacturer_id(&self) -> Option<ManufacturerId>[src]

Return the manufacturer ID from the General Info reply Check that the SysEx message is the right one.

Error

Returns None if the message isn't the right one.

pub fn general_info_reply_family(&self) -> Option<([u8; 2], [u8; 2])>[src]

Return the device family from the General Info reply Check that the SysEx message is the right one.

Error

Returns None if the message isn't the right one.

Auto Trait Implementations

impl<'a> RefUnwindSafe for USysExDecoder<'a>

impl<'a> Send for USysExDecoder<'a>

impl<'a> Sync for USysExDecoder<'a>

impl<'a> Unpin for USysExDecoder<'a>

impl<'a> UnwindSafe for USysExDecoder<'a>

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.