Skip to main content

Runner

Trait Runner 

Source
pub trait Runner:
    Send
    + Sync
    + 'static {
    // Required method
    fn block_on(&self, fut: BlockFuture) -> Result<(), Box<dyn Any + Send>>;
}

Required Methods§

Source

fn block_on(&self, fut: BlockFuture) -> Result<(), Box<dyn Any + Send>>

Runs the future to completion.

A panic of the event loop may be returned as an error or may unwind, both are handled the same way.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§