pub struct RuntimeConfig {
pub clock_mode: ClockMode,
pub outputs: Vec<MidiOutputConfig>,
pub inputs: Vec<MidiInputConfig>,
pub event_queue_capacity: usize,
pub command_queue_capacity: usize,
pub allow_normal_priority: bool,
}Expand description
Full configuration for starting the RT runtime.
Specifies the clock mode (master, slave, or passthrough), which MIDI ports to open, and the capacity of the lock-free communication queues.
Fields§
§clock_mode: ClockModeClock mode selection (master, slave, or passthrough).
outputs: Vec<MidiOutputConfig>MIDI output port configurations.
inputs: Vec<MidiInputConfig>MIDI input port configurations.
event_queue_capacity: usizeCapacity of the RT-to-ECS event queue.
command_queue_capacity: usizeCapacity of the ECS-to-RT command queue.
allow_normal_priority: boolIf true, the runtime will continue at normal OS priority when
RT priority elevation fails. If false (the default), a failed
elevation is treated as a fatal startup error.
Trait Implementations§
Source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
Source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
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 moreAuto Trait Implementations§
impl Freeze for RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnsafeUnpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
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