Enum helgoboss_midi::ShortMessageType
source · [−]#[repr(u8)]
pub enum ShortMessageType {
Show 23 variants
NoteOff,
NoteOn,
PolyphonicKeyPressure,
ControlChange,
ProgramChange,
ChannelPressure,
PitchBendChange,
SystemExclusiveStart,
TimeCodeQuarterFrame,
SongPositionPointer,
SongSelect,
SystemCommonUndefined1,
SystemCommonUndefined2,
TuneRequest,
SystemExclusiveEnd,
TimingClock,
SystemRealTimeUndefined1,
Start,
Continue,
Stop,
SystemRealTimeUndefined2,
ActiveSensing,
SystemReset,
}
Expand description
The most fine-grained classification of short MIDI messages.
Variants can be converted to and from u8
. In case of channel messages, the u8
value
corresponds to the status byte with channel 0. In case of system messages, the u8
value
corresponds to the complete status byte.
Variants
NoteOff
NoteOn
PolyphonicKeyPressure
ControlChange
ProgramChange
ChannelPressure
PitchBendChange
SystemExclusiveStart
TimeCodeQuarterFrame
SongPositionPointer
SongSelect
SystemCommonUndefined1
SystemCommonUndefined2
TuneRequest
SystemExclusiveEnd
TimingClock
SystemRealTimeUndefined1
Start
Continue
Stop
SystemRealTimeUndefined2
ActiveSensing
SystemReset
Implementations
sourceimpl ShortMessageType
impl ShortMessageType
sourcepub fn super_type(&self) -> FuzzyMessageSuperType
pub fn super_type(&self) -> FuzzyMessageSuperType
Returns the corresponding fuzzy super type.
Trait Implementations
sourceimpl Clone for ShortMessageType
impl Clone for ShortMessageType
sourcefn clone(&self) -> ShortMessageType
fn clone(&self) -> ShortMessageType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ShortMessageType
impl Debug for ShortMessageType
sourceimpl From<ShortMessageType> for u8
impl From<ShortMessageType> for u8
sourcefn from(enum_value: ShortMessageType) -> Self
fn from(enum_value: ShortMessageType) -> Self
Converts to this type from the input type.
sourceimpl Hash for ShortMessageType
impl Hash for ShortMessageType
sourceimpl Ord for ShortMessageType
impl Ord for ShortMessageType
sourceimpl PartialEq<ShortMessageType> for ShortMessageType
impl PartialEq<ShortMessageType> for ShortMessageType
sourceimpl PartialOrd<ShortMessageType> for ShortMessageType
impl PartialOrd<ShortMessageType> for ShortMessageType
sourcefn partial_cmp(&self, other: &ShortMessageType) -> Option<Ordering>
fn partial_cmp(&self, other: &ShortMessageType) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl TryFrom<u8> for ShortMessageType
impl TryFrom<u8> for ShortMessageType
type Error = TryFromPrimitiveError<ShortMessageType>
type Error = TryFromPrimitiveError<ShortMessageType>
The type returned in the event of a conversion error.
sourcefn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for ShortMessageType
impl TryFromPrimitive for ShortMessageType
type Primitive = u8
const NAME: &'static str = "ShortMessageType"
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for ShortMessageType
impl Eq for ShortMessageType
impl StructuralEq for ShortMessageType
impl StructuralPartialEq for ShortMessageType
Auto Trait Implementations
impl RefUnwindSafe for ShortMessageType
impl Send for ShortMessageType
impl Sync for ShortMessageType
impl Unpin for ShortMessageType
impl UnwindSafe for ShortMessageType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more