[][src]Struct midi_control::message::SysExEvent

pub struct SysExEvent { /* fields omitted */ }

SysEx message

Implementations

impl SysExEvent[src]

pub fn new_manufacturer(manufacturer: ManufacturerId, data: &[u8]) -> SysExEvent[src]

Create a new SysEx message with a manufacturer ID

  • data is the data in the message, including the EOX

pub fn new_non_realtime(device: u8, subids: [u8; 2], data: &[u8]) -> SysExEvent[src]

Create a non realtime Universal System Exclusive message

  • device is the device. Use consts::usysex::ALL_CALL if you want all device to listen
  • subids is the two bytes for the message type.
  • data incude the rest of the data including EOX

pub fn new_realtime(device: u8, subids: [u8; 2], data: &[u8]) -> SysExEvent[src]

Create a realtime Universal System Exclusive message

  • device is the device. Use consts::usysex::ALL_CALL if you want all device to listen
  • subids is the two bytes for the message type.
  • data incude the rest of the data including EOX

pub fn get_type(&self) -> &SysExType[src]

Get the SysEx type

pub fn get_data(&self) -> &Vec<u8>[src]

Get the data from the SysEx

Trait Implementations

impl Debug for SysExEvent[src]

impl PartialEq<SysExEvent> for SysExEvent[src]

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