Struct audio_streams::capture::NoopCaptureStream
source · pub struct NoopCaptureStream {
buffer: Vec<u8>,
frame_size: usize,
interval: Duration,
next_frame: Duration,
start_time: Option<Instant>,
buffer_drop: NoopBufferCommit,
}
Expand description
Stream that provides null capture samples.
Fields§
§buffer: Vec<u8>
§frame_size: usize
§interval: Duration
§next_frame: Duration
§start_time: Option<Instant>
§buffer_drop: NoopBufferCommit
Implementations§
Trait Implementations§
source§impl AsyncCaptureBufferStream for NoopCaptureStream
impl AsyncCaptureBufferStream for NoopCaptureStream
fn next_capture_buffer<'a, 'life0, 'async_trait>(
&'a mut self,
ex: &'life0 dyn AudioStreamsExecutor
) -> Pin<Box<dyn Future<Output = Result<AsyncCaptureBuffer<'a>, BoxError>> + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
source§impl CaptureBufferStream for NoopCaptureStream
impl CaptureBufferStream for NoopCaptureStream
fn next_capture_buffer<'b, 's: 'b>( &'s mut self ) -> Result<CaptureBuffer<'b>, BoxError>
Auto Trait Implementations§
impl RefUnwindSafe for NoopCaptureStream
impl Send for NoopCaptureStream
impl Sync for NoopCaptureStream
impl Unpin for NoopCaptureStream
impl UnwindSafe for NoopCaptureStream
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