pub struct ParamEventQueue { /* private fields */ }Expand description
GUI → audio-thread param event queue.
Editor (push, GUI thread) → format wrapper (drain in process / flush,
audio thread) → host automation events.
Capacity: unbounded Mutex<Vec<_>>. Not a ring. A poisoned lock
(push no-op, drain returns empty) drops events rather than
panicking the audio thread. That full-drop is intentional
(ponytail: no lock-free ring until profiling says so).
Implementations§
Source§impl ParamEventQueue
impl ParamEventQueue
pub fn push(&self, event: ParamEvent)
Sourcepub fn drain(&self) -> Vec<ParamEvent>
pub fn drain(&self) -> Vec<ParamEvent>
Take all pending events (oldest first).
Trait Implementations§
Source§impl Default for ParamEventQueue
impl Default for ParamEventQueue
Source§fn default() -> ParamEventQueue
fn default() -> ParamEventQueue
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ParamEventQueue
impl Forget for ParamEventQueue
impl RefUnwindSafe for ParamEventQueue
impl Send for ParamEventQueue
impl Sync for ParamEventQueue
impl Unpin for ParamEventQueue
impl UnsafeUnpin for ParamEventQueue
impl UnwindSafe for ParamEventQueue
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