pub struct CountingSink {
pub blocks: u64,
pub frames: u64,
pub bytes: u64,
pub last_end: Micros,
pub rejected: u64,
/* private fields */
}Expand description
Counts what it is given and remembers where the stream has got to.
Fields§
§blocks: u64Blocks accepted.
frames: u64Sample frames accepted.
bytes: u64Bytes accepted.
last_end: MicrosEnd timestamp of the last block.
rejected: u64Blocks refused because their format did not match the first one.
Implementations§
Source§impl CountingSink
impl CountingSink
Trait Implementations§
Source§impl AudioSink for CountingSink
impl AudioSink for CountingSink
Source§impl Clone for CountingSink
impl Clone for CountingSink
Source§fn clone(&self) -> CountingSink
fn clone(&self) -> CountingSink
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CountingSink
impl Debug for CountingSink
Source§impl Default for CountingSink
impl Default for CountingSink
Source§fn default() -> CountingSink
fn default() -> CountingSink
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CountingSink
impl RefUnwindSafe for CountingSink
impl Send for CountingSink
impl Sync for CountingSink
impl Unpin for CountingSink
impl UnsafeUnpin for CountingSink
impl UnwindSafe for CountingSink
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