Struct audio_streams::NoopStream
source · pub struct NoopStream {
pub(crate) buffer: Vec<u8>,
pub(crate) frame_size: usize,
pub(crate) interval: Duration,
pub(crate) next_frame: Duration,
pub(crate) start_time: Option<Instant>,
pub(crate) buffer_drop: NoopBufferCommit,
}
Expand description
Stream that accepts playback samples but drops them.
Fields§
§buffer: Vec<u8>
§frame_size: usize
§interval: Duration
§next_frame: Duration
§start_time: Option<Instant>
§buffer_drop: NoopBufferCommit
Implementations§
source§impl NoopStream
impl NoopStream
Trait Implementations§
source§impl AsyncPlaybackBufferStream for NoopStream
impl AsyncPlaybackBufferStream for NoopStream
fn next_playback_buffer<'a, 'life0, 'async_trait>(
&'a mut self,
ex: &'life0 dyn AudioStreamsExecutor
) -> Pin<Box<dyn Future<Output = Result<AsyncPlaybackBuffer<'a>, BoxError>> + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
source§impl PlaybackBufferStream for NoopStream
impl PlaybackBufferStream for NoopStream
fn next_playback_buffer<'b, 's: 'b>( &'s mut self ) -> Result<PlaybackBuffer<'b>, BoxError>
Auto Trait Implementations§
impl RefUnwindSafe for NoopStream
impl Send for NoopStream
impl Sync for NoopStream
impl Unpin for NoopStream
impl UnwindSafe for NoopStream
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