pub struct CollectingSink { /* private fields */ }Expand description
A MediaSink that records every frame it receives. Useful for asserting
what a pipeline produced.
Implementations§
Trait Implementations§
Source§impl Clone for CollectingSink
impl Clone for CollectingSink
Source§fn clone(&self) -> CollectingSink
fn clone(&self) -> CollectingSink
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 moreSource§impl Default for CollectingSink
impl Default for CollectingSink
Source§fn default() -> CollectingSink
fn default() -> CollectingSink
Returns the “default value” for a type. Read more
Source§impl MediaSink for CollectingSink
impl MediaSink for CollectingSink
Source§fn send_frame<'life0, 'async_trait>(
&'life0 mut self,
frame: MediaFrame,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send_frame<'life0, 'async_trait>(
&'life0 mut self,
frame: MediaFrame,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send a frame to this sink.
Auto Trait Implementations§
impl Freeze for CollectingSink
impl RefUnwindSafe for CollectingSink
impl Send for CollectingSink
impl Sync for CollectingSink
impl Unpin for CollectingSink
impl UnsafeUnpin for CollectingSink
impl UnwindSafe for CollectingSink
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