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

Fields of Unknown

Methods

impl SysExEvent
[src]

[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]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Clone for SysExEvent
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for SysExEvent
[src]

[src]

Formats the value using the given formatter.

impl MessageTool for SysExEvent
[src]

[src]

Returns message's binary array for SMF. Read more

[src]

Returns length of message's binary array for SMF. Read more

[src]

Returns message's status byte for SMF. Read more

impl Display for SysExEvent
[src]

[src]

Formats the value using the given formatter. Read more