Struct relm4::component::worker::WorkerController
source · pub struct WorkerController<W: Component> { /* private fields */ }
Expand description
Sends inputs to a worker. On drop, shuts down the worker.
Implementations§
source§impl<W: Component> WorkerController<W>
impl<W: Component> WorkerController<W>
sourcepub fn detach_runtime(&mut self)
pub fn detach_runtime(&mut self)
Dropping this type will usually stop the runtime of the worker.
With this method you can give the runtime a static lifetime.
In other words, dropping the WorkerController
will not stop
the runtime anymore, it will run until the app is closed.