pub trait WritingDevice: Send + Sized {
    type Config: DeviceConfig;

    // Required methods
    fn new(config: &Self::Config) -> Result<Self, DeviceError>;
    fn set_let_data<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        config: &'life1 Self::Config,
        led_data: &'life2 [Color]
    ) -> Pin<Box<dyn Future<Output = Result<(), DeviceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn write<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<(), DeviceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

source

fn new(config: &Self::Config) -> Result<Self, DeviceError>

source

fn set_let_data<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, config: &'life1 Self::Config, led_data: &'life2 [Color] ) -> Pin<Box<dyn Future<Output = Result<(), DeviceError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

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

Implementors§