[−][src]Struct midi_control::message::SysExEvent
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]
fn eq(&self, other: &SysExEvent) -> bool
[src]
fn ne(&self, other: &SysExEvent) -> bool
[src]
impl StructuralPartialEq for SysExEvent
[src]
Auto Trait Implementations
impl RefUnwindSafe for SysExEvent
impl Send for SysExEvent
impl Sync for SysExEvent
impl Unpin for SysExEvent
impl UnwindSafe for SysExEvent
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>,