pub enum RtEvent {
ClockTick {
subdivision: u8,
beat: u64,
tempo_bpm: f64,
timestamp_ns: u64,
},
Transport(TransportEvent),
MidiInput {
input_port_index: u8,
timestamp_ns: u64,
message: MidiMessage,
},
SongPosition {
position: u16,
},
NonFatalError(RtErrorCode),
}Expand description
An event produced by the RT thread for consumption by the ECS world.
Variants§
ClockTick
A clock tick occurred at the given subdivision of a beat.
Fields
Transport(TransportEvent)
A transport state change.
MidiInput
A MIDI message received on an input port.
Fields
§
message: MidiMessageThe MIDI message payload.
SongPosition
A MIDI Song Position Pointer update.
NonFatalError(RtErrorCode)
A non-fatal error that the ECS world should be aware of.
Trait Implementations§
impl Copy for RtEvent
impl StructuralPartialEq for RtEvent
Auto Trait Implementations§
impl Freeze for RtEvent
impl RefUnwindSafe for RtEvent
impl Send for RtEvent
impl Sync for RtEvent
impl Unpin for RtEvent
impl UnsafeUnpin for RtEvent
impl UnwindSafe for RtEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more