Trait hyperion::instance::device::DeviceImpl
source · trait DeviceImpl: Send {
// Required methods
fn set_led_data<'life0, 'life1, 'async_trait>(
&'life0 mut self,
led_data: &'life1 [Color]
) -> Pin<Box<dyn Future<Output = Result<(), DeviceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), DeviceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Required Methods§
sourcefn set_led_data<'life0, 'life1, 'async_trait>(
&'life0 mut self,
led_data: &'life1 [Color]
) -> Pin<Box<dyn Future<Output = Result<(), DeviceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn set_led_data<'life0, 'life1, 'async_trait>( &'life0 mut self, led_data: &'life1 [Color] ) -> Pin<Box<dyn Future<Output = Result<(), DeviceError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
sourcefn update<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), DeviceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<(), DeviceError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Update the device implementation’s temporal data. For devices that require regular rewrites (regardless of actual changes in the LED data), this should return a future that performs the required work.