pub struct RtHandles {
pub events: Consumer<RtEvent>,
pub commands: Producer<EcsCommand>,
}Expand description
The ECS-side handles for communicating with the RT thread.
Returned by Runtime::start().
The ECS world uses these to receive events from the RT thread and
send commands to it.
Fields§
§events: Consumer<RtEvent>Receives events produced by the RT thread (clock ticks, MIDI input, transport changes, errors).
commands: Producer<EcsCommand>Sends commands to the RT thread (MIDI output, tempo changes, transport, shutdown).
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RtHandles
impl !RefUnwindSafe for RtHandles
impl Send for RtHandles
impl !Sync for RtHandles
impl Unpin for RtHandles
impl UnsafeUnpin for RtHandles
impl UnwindSafe for RtHandles
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