pub enum EcsCommand {
SendMidi {
output_port_index: u8,
message: MidiMessage,
},
SetTempo {
bpm: f64,
},
SendTransport(TransportEvent),
SendSongPosition {
position: u16,
},
Shutdown,
}Expand description
A command sent from the ECS world to the RT thread.
Variants§
SendMidi
Send a MIDI message out on an output port.
Fields
§
message: MidiMessageThe MIDI message payload.
SetTempo
Change the master clock tempo.
SendTransport(TransportEvent)
Send a MIDI transport message (Start/Stop/Continue).
SendSongPosition
Send a MIDI Song Position Pointer message.
Shutdown
Gracefully shut down the RT thread.
Trait Implementations§
Source§impl Clone for EcsCommand
impl Clone for EcsCommand
Source§fn clone(&self) -> EcsCommand
fn clone(&self) -> EcsCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EcsCommand
impl Debug for EcsCommand
Source§impl PartialEq for EcsCommand
impl PartialEq for EcsCommand
impl Copy for EcsCommand
impl StructuralPartialEq for EcsCommand
Auto Trait Implementations§
impl Freeze for EcsCommand
impl RefUnwindSafe for EcsCommand
impl Send for EcsCommand
impl Sync for EcsCommand
impl Unpin for EcsCommand
impl UnsafeUnpin for EcsCommand
impl UnwindSafe for EcsCommand
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