pub trait WindowManager {
// Required methods
fn get_active_window_data<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<ActiveWindowData>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn is_idle<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Intended to serve as a contract windows and linux systems must implement.
Required Methods§
fn get_active_window_data<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<ActiveWindowData>> + 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".