pub struct SampleBlock<'a> { /* private fields */ }Expand description
Borrowed view of one raw receive block.
Implementations§
Source§impl<'a> SampleBlock<'a>
impl<'a> SampleBlock<'a>
Sourcepub const fn sample_count(&self) -> usize
pub const fn sample_count(&self) -> usize
Sample count reported for this block.
Sourcepub const fn dropped_samples(&self) -> u64
pub const fn dropped_samples(&self) -> u64
Estimated sample count represented by USB buffers the driver discarded.
RTL-SDR transfers have no sequence numbers, so this cannot include samples lost inside the device while the host transfer queue was exhausted.
Trait Implementations§
Source§impl<'a> Clone for SampleBlock<'a>
impl<'a> Clone for SampleBlock<'a>
impl<'a> Copy for SampleBlock<'a>
Source§impl<'a> Debug for SampleBlock<'a>
impl<'a> Debug for SampleBlock<'a>
impl<'a> Eq for SampleBlock<'a>
Source§impl<'a> PartialEq for SampleBlock<'a>
impl<'a> PartialEq for SampleBlock<'a>
impl<'a> StructuralPartialEq for SampleBlock<'a>
Auto Trait Implementations§
impl<'a> Freeze for SampleBlock<'a>
impl<'a> RefUnwindSafe for SampleBlock<'a>
impl<'a> Send for SampleBlock<'a>
impl<'a> Sync for SampleBlock<'a>
impl<'a> Unpin for SampleBlock<'a>
impl<'a> UnsafeUnpin for SampleBlock<'a>
impl<'a> UnwindSafe for SampleBlock<'a>
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