Skip to main content

Compositor

Trait Compositor 

Source
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§

Source

fn new(ctx: &Context<'_>) -> Self

Provided Methods§

Source

fn is_active(&self) -> bool

Source

fn initialize(&mut self, _ctx: &Context<'_>)

Source

fn update_state(&mut self, _ctx: &Context<'_>)

Source

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".

Implementors§