[][src]Enum midi_control::message::Channel

#[repr(u8)]pub enum Channel {
    Ch1,
    Ch2,
    Ch3,
    Ch4,
    Ch5,
    Ch6,
    Ch7,
    Ch8,
    Ch9,
    Ch10,
    Ch11,
    Ch12,
    Ch13,
    Ch14,
    Ch15,
    Ch16,
    Invalid,
}

The MIDI Channel

Variants

Ch1
Ch2
Ch3
Ch4
Ch5
Ch6
Ch7
Ch8
Ch9
Ch10
Ch11
Ch12
Ch13
Ch14
Ch15
Ch16
Invalid

Implementations

impl Channel[src]

pub fn from_midi_cmd(v: u8) -> Channel[src]

Convert the MIDI command byte to a Channel

Trait Implementations

impl Clone for Channel[src]

impl Copy for Channel[src]

impl Debug for Channel[src]

impl From<u8> for Channel[src]

fn from(v: u8) -> Channel[src]

Convert a byte value 0-15 to the Channel. If you want to extract it from the MIDI event, use Channel::from_midi_cmd()

impl PartialEq<Channel> for Channel[src]

impl StructuralPartialEq for Channel[src]

Auto Trait Implementations

impl RefUnwindSafe for Channel

impl Send for Channel

impl Sync for Channel

impl Unpin for Channel

impl UnwindSafe for Channel

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, 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.