pub trait Compositor: Send + 'static {
// Required method
fn new(ctx: &Context<'_>) -> Self;
// Provided methods
fn is_active(&self) -> bool { ... }
fn initialize(&mut self, _ctx: &Context<'_>) { ... }
fn update_state(&mut self, _ctx: &Context<'_>) { ... }
fn send_command(&mut self, _ctx: &Context<'_>, _command: &CompositorCommand) { ... }
}Required Methods§
Provided Methods§
fn is_active(&self) -> bool
fn initialize(&mut self, _ctx: &Context<'_>)
fn update_state(&mut self, _ctx: &Context<'_>)
fn send_command(&mut self, _ctx: &Context<'_>, _command: &CompositorCommand)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".