pub struct MockVideoFrameReaders(/* private fields */);Expand description
Frame readers that never have a frame, and which keep each reader made. Every clone is the same readers.
Implementations§
Source§impl MockVideoFrameReaders
impl MockVideoFrameReaders
pub fn new() -> MockVideoFrameReaders
Sourcepub fn made(&self) -> Vec<Arc<dyn VideoFrameReader>>
pub fn made(&self) -> Vec<Arc<dyn VideoFrameReader>>
The readers made, in order.
Trait Implementations§
Source§impl Clone for MockVideoFrameReaders
impl Clone for MockVideoFrameReaders
Source§impl Default for MockVideoFrameReaders
impl Default for MockVideoFrameReaders
Source§impl VideoFrameReaders for MockVideoFrameReaders
impl VideoFrameReaders for MockVideoFrameReaders
Source§fn make_reader(&self) -> Arc<dyn VideoFrameReader> ⓘ
fn make_reader(&self) -> Arc<dyn VideoFrameReader> ⓘ
A reader fed by nothing yet, which reads the frames of the source it is given to: a
player’s
set_video_output, a camera’s outputs
(CameraOutputs::frames). The reader goes when its last handle does: the app’s, and its
source’s.Auto Trait Implementations§
impl !RefUnwindSafe for MockVideoFrameReaders
impl !Send for MockVideoFrameReaders
impl !Sync for MockVideoFrameReaders
impl !UnwindSafe for MockVideoFrameReaders
impl Forget for MockVideoFrameReaders
impl Freeze for MockVideoFrameReaderswhere
*const RcInner<RefCell<Vec<Arc<dyn VideoFrameReader>>>> is !null: Freeze,
PhantomData<RcInner<RefCell<Vec<Arc<dyn VideoFrameReader>>>>>: Freeze,
impl Move for MockVideoFrameReaders
impl Unpin for MockVideoFrameReaders
impl UnsafeUnpin for MockVideoFrameReaderswhere
*const RcInner<RefCell<Vec<Arc<dyn VideoFrameReader>>>> is !null: UnsafeUnpin,
PhantomData<RcInner<RefCell<Vec<Arc<dyn VideoFrameReader>>>>>: UnsafeUnpin,
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