pub struct ChunkConsumer { /* private fields */ }Expand description
Handle for the poll thread. Consume chunks with try_pop.
Implementations§
Source§impl ChunkConsumer
impl ChunkConsumer
Sourcepub fn try_pop(&mut self) -> Option<AudioChunk>
pub fn try_pop(&mut self) -> Option<AudioChunk>
Take the oldest chunk, or return None without blocking if empty.
Mark the first delivery after newly observed evictions DISCONTINUITY, including
a surviving chunk that was inserted before those evictions occurred.
Sourcepub fn dropped_count(&self) -> u64
pub fn dropped_count(&self) -> u64
Cumulative number of chunks discarded by DROP_OLDEST.
Auto Trait Implementations§
impl Freeze for ChunkConsumer
impl RefUnwindSafe for ChunkConsumer
impl Send for ChunkConsumer
impl Sync for ChunkConsumer
impl Unpin for ChunkConsumer
impl UnsafeUnpin for ChunkConsumer
impl UnwindSafe for ChunkConsumer
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