pub struct NullSink {
pub frames_received: u64,
pub bytes_received: u64,
pub format_seen: Option<SourceFormat>,
}Expand description
Discarding sink — useful for correctness tests + dry runs that exercise the pull loop without wiring an encoder. Records a frame + byte counter so callers can assert progress.
Fields§
§frames_received: u64§bytes_received: u64§format_seen: Option<SourceFormat>Trait Implementations§
Source§impl SceneSink for NullSink
impl SceneSink for NullSink
Source§fn init(&mut self, format: &SourceFormat) -> Result<()>
fn init(&mut self, format: &SourceFormat) -> Result<()>
Called once before the first
push. The sink may return
Error::Unsupported if it can’t handle the format.Auto Trait Implementations§
impl Freeze for NullSink
impl RefUnwindSafe for NullSink
impl Send for NullSink
impl Sync for NullSink
impl Unpin for NullSink
impl UnsafeUnpin for NullSink
impl UnwindSafe for NullSink
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