Trait leftwm_core::display_servers::DisplayServer
source · pub trait DisplayServer {
// Required methods
fn new(config: &impl Config) -> Self;
fn get_next_events(&mut self) -> Vec<DisplayEvent>;
fn wait_readable(&self) -> Pin<Box<dyn Future<Output = ()>>>;
fn flush(&self);
fn generate_verify_focus_event(&self) -> Option<DisplayEvent>;
// Provided methods
fn load_config(
&mut self,
_config: &impl Config,
_focused: Option<&Option<WindowHandle>>,
_windows: &[Window]
) { ... }
fn update_windows(&self, _windows: Vec<&Window>) { ... }
fn update_workspaces(&self, _focused: Option<&Workspace>) { ... }
fn execute_action(&mut self, _act: DisplayAction) -> Option<DisplayEvent> { ... }
}
Required Methods§
fn new(config: &impl Config) -> Self
fn get_next_events(&mut self) -> Vec<DisplayEvent>
fn wait_readable(&self) -> Pin<Box<dyn Future<Output = ()>>>
fn flush(&self)
fn generate_verify_focus_event(&self) -> Option<DisplayEvent>
Provided Methods§
fn load_config( &mut self, _config: &impl Config, _focused: Option<&Option<WindowHandle>>, _windows: &[Window] )
fn update_windows(&self, _windows: Vec<&Window>)
fn update_workspaces(&self, _focused: Option<&Workspace>)
fn execute_action(&mut self, _act: DisplayAction) -> Option<DisplayEvent>
Object Safety§
This trait is not object safe.