Trait cameleon::camera::PayloadStream[][src]

pub trait PayloadStream {
    fn open(&mut self) -> StreamResult<()>;
fn close(&mut self) -> StreamResult<()>;
fn start_streaming_loop(
        &mut self,
        sender: PayloadSender,
        ctrl: &mut dyn DeviceControl
    ) -> StreamResult<()>;
fn stop_streaming_loop(&mut self) -> StreamResult<()>;
fn is_loop_running(&self) -> bool; }
Expand description

This trait provides streaming capability.

Required methods

Opens the handle.

Closes the handle.

Starts streaming.

Stops streaming.

Returns true if streaming loop is running.

Implementations on Foreign Types

Implementors