[−][src]Struct midi_control::sysex::USysExDecoder
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,