BrightnessManager

Trait BrightnessManager 

Source
pub trait BrightnessManager: Sized {
    // Required methods
    fn from_context<'life0, 'async_trait>(
        service_context: &'life0 ServiceContext,
        external_publisher: ExternalEventPublisher,
    ) -> Pin<Box<dyn Future<Output = Result<Self, DisplayError>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_brightness<'life0, 'life1, 'async_trait>(
        &'life0 self,
        info: DisplayInfo,
        store: &'life1 DeviceStorage,
        always_send: bool,
    ) -> Pin<Box<dyn Future<Output = Result<Option<DisplayInfo>, DisplayError>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn from_context<'life0, 'async_trait>( service_context: &'life0 ServiceContext, external_publisher: ExternalEventPublisher, ) -> Pin<Box<dyn Future<Output = Result<Self, DisplayError>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn update_brightness<'life0, 'life1, 'async_trait>( &'life0 self, info: DisplayInfo, store: &'life1 DeviceStorage, always_send: bool, ) -> Pin<Box<dyn Future<Output = Result<Option<DisplayInfo>, DisplayError>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl BrightnessManager for ()

Source§

fn from_context<'life0, 'async_trait>( _: &'life0 ServiceContext, __arg1: ExternalEventPublisher, ) -> Pin<Box<dyn Future<Output = Result<Self, DisplayError>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn update_brightness<'life0, 'life1, 'async_trait>( &'life0 self, info: DisplayInfo, store: &'life1 DeviceStorage, __arg3: bool, ) -> Pin<Box<dyn Future<Output = Result<Option<DisplayInfo>, DisplayError>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§