Skip to main content

RuntimeScheduler

Trait RuntimeScheduler 

Source
pub trait RuntimeScheduler: Send + Sync {
    // Required method
    fn schedule_frame(&self);
}
Expand description

Schedules work for the Compose runtime.

Implementations are responsible for triggering frame processing and executing background tasks on behalf of Compose.

Required Methods§

Source

fn schedule_frame(&self)

Request that the host schedule a new frame.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§