Skip to main content

VisionSensor

Trait VisionSensor 

Source
pub trait VisionSensor:
    Debug
    + Send
    + Sync
    + Basic {
    // Required method
    fn check(&self) -> Result<()>;

    // Provided methods
    fn visionsensor_color<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<(Receiver<DetectedColor>, JoinHandle<()>)>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn visionsensor_light_output_mode<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn visionsensor_set_color<'life0, 'async_trait>(
        &'life0 self,
        color: OutputColor,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}

Required Methods§

Source

fn check(&self) -> Result<()>

Provided Methods§

Source

fn visionsensor_color<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<(Receiver<DetectedColor>, JoinHandle<()>)>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn visionsensor_light_output_mode<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn visionsensor_set_color<'life0, 'async_trait>( &'life0 self, color: OutputColor, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§