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§
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,
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.