pub struct AsyncReadControlHandle { /* private fields */ }Expand description
Cloneable control access to an owned asynchronous reader.
Implementations§
Source§impl AsyncReadControlHandle
impl AsyncReadControlHandle
Sourcepub fn set_center_freq(&self, frequency: u32) -> Result<u64>
pub fn set_center_freq(&self, frequency: u32) -> Result<u64>
Retunes the receiver and returns the new stream generation.
Sourcepub fn set_tuner_gain(&self, gain: TunerGain) -> Result<u64>
pub fn set_tuner_gain(&self, gain: TunerGain) -> Result<u64>
Changes tuner gain and returns the new stream generation.
Sourcepub fn set_sample_rate(&self, sample_rate: u32) -> Result<u64>
pub fn set_sample_rate(&self, sample_rate: u32) -> Result<u64>
Changes the sample rate and returns the new stream generation.
Sourcepub fn dropped_chunks(&self) -> u64
pub fn dropped_chunks(&self) -> u64
Number of sample chunks dropped because the consumer queue was full.
Trait Implementations§
Source§impl Clone for AsyncReadControlHandle
impl Clone for AsyncReadControlHandle
Source§fn clone(&self) -> AsyncReadControlHandle
fn clone(&self) -> AsyncReadControlHandle
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 moreAuto Trait Implementations§
impl Freeze for AsyncReadControlHandle
impl RefUnwindSafe for AsyncReadControlHandle
impl Send for AsyncReadControlHandle
impl Sync for AsyncReadControlHandle
impl Unpin for AsyncReadControlHandle
impl UnsafeUnpin for AsyncReadControlHandle
impl UnwindSafe for AsyncReadControlHandle
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