#[non_exhaustive]
pub enum EventType {
Show 58 variants
System,
Result,
Note,
Noteon,
Noteoff,
Keypress,
Controller,
Pgmchange,
Chanpress,
Pitchbend,
Control14,
Nonregparam,
Regparam,
Songpos,
Songsel,
Qframe,
Timesign,
Keysign,
Start,
Continue,
Stop,
SetposTick,
SetposTime,
Tempo,
Clock,
Tick,
QueueSkew,
TuneRequest,
Reset,
Sensing,
Echo,
Oss,
ClientStart,
ClientExit,
ClientChange,
PortStart,
PortExit,
PortChange,
PortSubscribed,
PortUnsubscribed,
Usr0,
Usr1,
Usr2,
Usr3,
Usr4,
Usr5,
Usr6,
Usr7,
Usr8,
Usr9,
Sysex,
Bounce,
UsrVar0,
UsrVar1,
UsrVar2,
UsrVar3,
UsrVar4,
None,
// some variants omitted
}Expand description
The type of event.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
System
For system status.
Result
For result status.
Note
For note message with duration.
Noteon
For note on message.
Noteoff
For note off message.
Keypress
For keypress message.
Controller
For control change message.
Pgmchange
For program change message.
Chanpress
For channel pressure message.
Pitchbend
For pitchbend message.
Control14
For control message with 14 bit value.
Nonregparam
For 14 bit NRPN address and 14 bit unsigned value.
Regparam
For 14 bit RPN address and 14 bit unsigned value.
Songpos
For song position message with LSB and MSB values.
Songsel
For song select message with numerical ID of song.
Qframe
For time code quarter frame message of MIDI.
Timesign
For time signature message of Standard MIDi File.
Keysign
For key signature message of Standard MIDI File.
Start
For Real Time Start message of MIDI.
Continue
For Real Time Continue message of MIDI.
Stop
For Real Time Stop message of MIDI.
SetposTick
For position setting of tick queue.
SetposTime
For position setting of realtime queue.
Tempo
For tempo message of Standard MIDI File.
Clock
For Real Time Clock message of MIDI.
Tick
For Real Time Tick message of MIDI.
QueueSkew
For skew of tempo for queue.
TuneRequest
For requests to tune.
Reset
For reset to power-on state.
Sensing
For active sensing message.
Echo
For echo message.
Oss
For raw message from Open Sound System.
ClientStart
For appear of the port.
ClientExit
For disappear of the client.
ClientChange
For change of information or status of the client.
PortStart
For addition of the port.
PortExit
For removal of the port.
PortChange
For change of information or status of the port.
PortSubscribed
For establishment of subscription about the port.
PortUnsubscribed
For break of subscription about the port.
Usr0
For user-defined message 0.
Usr1
For user-defined message 1.
Usr2
For user-defined message 2.
Usr3
For user-defined message 3.
Usr4
For user-defined message 4.
Usr5
For user-defined message 5.
Usr6
For user-defined message 6.
Usr7
For user-defined message 7.
Usr8
For user-defined message 8.
Usr9
For user-defined message 9.
Sysex
For system exclisive message with variable length data.
Bounce
For error message.
UsrVar0
For user-defined message 0 with variable length data.
UsrVar1
For user-defined message 1 with variable length data.
UsrVar2
For user-defined message 2 with variable length data.
UsrVar3
For user-defined message 3 with variable length data.
UsrVar4
For user-defined message 4 with variable length data.
None
For invalid or unknown message.
Trait Implementations
sourceimpl<'a> FromValue<'a> for EventType
impl<'a> FromValue<'a> for EventType
type Checker = GenericValueTypeChecker<EventType>
type Checker = GenericValueTypeChecker<EventType>
Value type checker.
sourceunsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a Value. Read more
sourceimpl Ord for EventType
impl Ord for EventType
sourceimpl PartialOrd<EventType> for EventType
impl PartialOrd<EventType> for EventType
sourcefn partial_cmp(&self, other: &EventType) -> Option<Ordering>
fn partial_cmp(&self, other: &EventType) -> 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 StaticType for EventType
impl StaticType for EventType
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self.
impl Copy for EventType
impl Eq for EventType
impl StructuralEq for EventType
impl StructuralPartialEq for EventType
Auto Trait Implementations
impl RefUnwindSafe for EventType
impl Send for EventType
impl Sync for EventType
impl Unpin for EventType
impl UnwindSafe for EventType
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
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a SendValue clone of self.