Skip to main content

Spawnable

Trait Spawnable 

Source
pub trait Spawnable:
    'static
    + Send
    + Future<Output: Send + 'static> { }
Expand description

spawned on WASM because of the return type)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T: 'static + Send + Future<Output: Send + 'static>> Spawnable for T