pub struct Config {
pub client_name: String,
pub auto_connect: bool,
pub sync: bool,
pub reply_timeout: Duration,
pub scan_interval: Duration,
pub bluetooth: bool,
}Expand description
Engine settings.
Fields§
§client_name: StringMIDI client name shown by the OS (ALSA sequencer, CoreMIDI).
auto_connect: boolConnect to the first pedal-looking port found, and again whenever it is plugged back in.
Command::Disconnect turns this off, Command::Connect turns it back on.
sync: boolWhether the engine may send anything (sync reads and edits). false = listen only.
reply_timeout: DurationHow long to wait for a SysEx reply or ack before moving on.
scan_interval: DurationHow often to rescan the MIDI ports (hotplug).
bluetooth: boolAlso look for the pedal over Bluetooth LE MIDI. Needs feature ble; ignored without it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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