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§
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,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".