pub struct Output {
pub midi: Vec<ActionStep, 32>,
pub display: Vec<DisplayEvent, 2>,
pub leds_changed: bool,
pub preset_changed: bool,
pub bpm: Option<u16>,
pub mon_led: Option<Rgb>,
pub mode_led: Option<Rgb>,
/* private fields */
}Expand description
Result of processing an input event through the Controller. Contains everything the caller needs to emit — no further logic required.
Fields§
§midi: Vec<ActionStep, 32>MIDI actions to emit (includes on_enter/on_exit/recall on preset switch).
display: Vec<DisplayEvent, 2>Display events (overlays, hints).
leds_changed: boolWhether LED state changed and needs re-rendering.
preset_changed: boolWhether a preset switch occurred (caller may need to update display).
bpm: Option<u16>BPM computed from tap tempo (if any).
mon_led: Option<Rgb>Mon indicator LED: flashes on MIDI activity. Green = MIDI output generated, Blue = incoming MIDI processed.
mode_led: Option<Rgb>Mode indicator LED: color represents the active preset/bank. Set on preset change; None means no change.
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnsafeUnpin for Output
impl UnwindSafe for Output
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