Enum ghakuf::messages::SysExEvent
[−]
[src]
pub enum SysExEvent { F0, F7, Unknown { status: u8, }, }
An enum representing System Exclusive event of SMF.
Examples
use ghakuf::messages::{MessageTool, SysExEvent}; let event: SysExEvent = SysExEvent::F0; assert_eq!(event.status_byte(), 0xf0);
Variants
F0
F7
Unknown
Fields of Unknown
status: u8 |
Methods
impl SysExEvent
[src]
fn new(status: u8) -> SysExEvent
[src]
Builds SysExEvent from status value.
Examples
use ghakuf::messages::SysExEvent; let event: SysExEvent = SysExEvent::new(0xf0); assert_eq!(event, SysExEvent::F0);
Trait Implementations
impl PartialEq for SysExEvent
[src]
fn eq(&self, __arg_0: &SysExEvent) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SysExEvent) -> bool
[src]
This method tests for !=
.
impl Clone for SysExEvent
[src]
fn clone(&self) -> SysExEvent
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for SysExEvent
[src]
impl MessageTool for SysExEvent
[src]
fn binary(&self) -> Vec<u8>
[src]
Returns message's binary array for SMF. Read more
fn len(&self) -> usize
[src]
Returns length of message's binary array for SMF. Read more
fn status_byte(&self) -> u8
[src]
Returns message's status byte for SMF. Read more