[][src]Enum ghakuf::messages::SysExEvent

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

Implementations

impl SysExEvent[src]

pub 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 Clone for SysExEvent[src]

impl Debug for SysExEvent[src]

impl Display for SysExEvent[src]

impl MessageTool 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.