pub struct SinkStats { /* private fields */ }Expand description
Counters the backend updates from its threads. Cloning shares them.
Implementations§
Source§impl SinkStats
impl SinkStats
pub fn new() -> Self
Sourcepub fn record_xrun(&self)
pub fn record_xrun(&self)
For backends: counts an xrun. Lock-free, safe on the audio thread.
Sourcepub fn record_error(&self)
pub fn record_error(&self)
For backends: counts another error.
Sourcepub fn record_callback(&self)
pub fn record_callback(&self)
For backends: counts a render call.
Trait Implementations§
Auto Trait Implementations§
impl Forget for SinkStats
impl Freeze for SinkStats
impl Move for SinkStats
impl RefUnwindSafe for SinkStats
impl Send for SinkStats
impl Sync for SinkStats
impl Unpin for SinkStats
impl UnsafeUnpin for SinkStatswhere
*const ArcInner<Atomic<u64>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<u64>>>: UnsafeUnpin,
impl UnwindSafe for SinkStats
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