yew_stdweb::agent

Trait Threaded

Source
pub trait Threaded {
    // Required method
    fn register();
}
Expand description

Implements rules to register a worker in a separate thread.

Required Methods§

Source

fn register()

Executes an agent in the current environment. Uses in main function of a worker.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<AGN> Threaded for AGN
where AGN: Agent<Reach = Public<AGN>>, <AGN as Agent>::Input: Serialize + for<'de> Deserialize<'de>, <AGN as Agent>::Output: Serialize + for<'de> Deserialize<'de>,