Skip to main content

Runnable

Trait Runnable 

Source
pub trait Runnable {
    // Required method
    fn run();
}
Expand description

An abstract for global runtime.

Required Methods§

Source

fn run()

It will be called if the callback is signaled, and there’s a waker to be waked.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Runnable for ()

Implementors§