[][src]Struct rtlsdr_mt::Reader

pub struct Reader(_);

Reads I/Q samples.

Methods

impl Reader[src]

pub fn read_async<F>(&mut self, bufs: u32, len: u32, cb: F) -> Result<()> where
    F: FnMut(&[u8]), 
[src]

Begin reading I/Q samples, buffering into the given number of chunks, with each chunk holding the given number of bytes. The given callback is called whenever new samples are available, receiving a chunk at a time.

This function blocks until the read is cancelled or otherwise terminated. Hardware parameters can be changed in a separate thread while this function is running.

Trait Implementations

impl Send for Reader[src]

Auto Trait Implementations

impl !Sync for Reader

impl Unpin for Reader

impl UnwindSafe for Reader

impl RefUnwindSafe for Reader

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]