Skip to main content

UiExecutor

Trait UiExecutor 

Source
pub trait UiExecutor:
    Send
    + Sync
    + 'static {
    // Required method
    fn spawn(&self, task: UiTask);
}

Required Methods§

Source

fn spawn(&self, task: UiTask)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F> UiExecutor for F
where F: Fn(UiTask) + Send + Sync + 'static,