pub struct MeterProducer { /* private fields */ }Expand description
Producer side of meter channel (audio thread).
Real-time safe: no allocations, no locks.
Implementations§
Source§impl MeterProducer
impl MeterProducer
Sourcepub fn push(&mut self, frame: MeterFrame)
pub fn push(&mut self, frame: MeterFrame)
Push a meter frame to the ring buffer.
Fails silently if buffer is full (drops oldest frame). This is acceptable for metering; UI will get next frame.
Sourcepub fn available_write(&self) -> usize
pub fn available_write(&self) -> usize
Returns the number of frames that can be written without blocking.
Auto Trait Implementations§
impl !Freeze for MeterProducer
impl !RefUnwindSafe for MeterProducer
impl Send for MeterProducer
impl !Sync for MeterProducer
impl Unpin for MeterProducer
impl UnwindSafe for MeterProducer
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