pub trait CompositorObject: Send + 'static {
// Required 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§
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 dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".