Trait Threaded
yew::agent
pub trait Threaded { fn register(); }
Implements rules to register a worker in a separate thread.
fn register()
Executes an agent in the current environment. Uses in main function of a worker.
main
impl<T> Threaded for T where T: Agent<Reach = Public>,