Skip to main content

CameraSynk

Trait CameraSynk 

Source
pub trait CameraSynk {
    // Required methods
    fn connect(&mut self) -> impl Future<Output = Result<()>> + Send;
    fn send_packet(
        &self,
        data: Vec<u8>,
    ) -> impl Future<Output = Result<()>> + Send;
}

Required Methods§

Source

fn connect(&mut self) -> impl Future<Output = Result<()>> + Send

Source

fn send_packet(&self, data: Vec<u8>) -> impl Future<Output = Result<()>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§