[][src]Enum midi_control::sysex::ManufacturerId

pub enum ManufacturerId {
    Id(u8),
    ExtId(u8u8),
}

System Exclusive Manufacturer Id Originally a single u8. If it is zero, two more u8.

Variants

Id(u8)
ExtId(u8u8)

Implementations

impl ManufacturerId[src]

pub fn from_raw(raw: &[u8]) -> Option<ManufacturerId>[src]

Creates a ManufacturerId from raw data.

Error

Return None if the raw data is too short.

pub fn raw_len(self) -> usize[src]

The byte length this take in raw data.

pub fn push_to(self, vec: &mut Vec<u8>)[src]

Push manufacturer id to raw data vector Will push exactly raw_len() bytes.

Trait Implementations

impl Clone for ManufacturerId[src]

impl Copy for ManufacturerId[src]

impl Debug for ManufacturerId[src]

impl PartialEq<ManufacturerId> for ManufacturerId[src]

impl StructuralPartialEq for ManufacturerId[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, 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.