pub trait RuntimeMethods: Send {
// Required methods
fn get_led_count(&self) -> usize;
fn abort<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_color<'life0, 'async_trait>(
&'life0 self,
color: Color,
) -> Pin<Box<dyn Future<Output = Result<(), RuntimeMethodError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_led_colors<'life0, 'async_trait>(
&'life0 self,
colors: Vec<Color>,
) -> Pin<Box<dyn Future<Output = Result<(), RuntimeMethodError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_image<'life0, 'async_trait>(
&'life0 self,
image: RawImage,
) -> Pin<Box<dyn Future<Output = Result<(), RuntimeMethodError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Methods§
fn get_led_count(&self) -> usize
fn abort<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_color<'life0, 'async_trait>(
&'life0 self,
color: Color,
) -> Pin<Box<dyn Future<Output = Result<(), RuntimeMethodError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_led_colors<'life0, 'async_trait>(
&'life0 self,
colors: Vec<Color>,
) -> Pin<Box<dyn Future<Output = Result<(), RuntimeMethodError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_image<'life0, 'async_trait>(
&'life0 self,
image: RawImage,
) -> Pin<Box<dyn Future<Output = Result<(), RuntimeMethodError>> + 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".