Trait ci2_async::AsyncCamera

source ·
pub trait AsyncCamera {
    // Required method
    fn frames(
        &mut self,
        bufsize: usize
    ) -> Result<Box<dyn Stream<Item = FrameResult> + Send + Unpin>>;
}
Expand description

Defines a method to return a stream of frames.

Required Methods§

source

fn frames( &mut self, bufsize: usize ) -> Result<Box<dyn Stream<Item = FrameResult> + Send + Unpin>>

asynchronous frame acquisition, get an infinite stream of frames

Implementors§

source§

impl<C> AsyncCamera for ThreadedAsyncCamera<C>
where C: 'static + Camera + Send,