Struct relm4::component::AsyncController
source · pub struct AsyncController<C: AsyncComponent> { /* private fields */ }
Expand description
Controls the component from afar.
Trait Implementations§
source§impl<C: AsyncComponent> AsyncComponentController<C> for AsyncController<C>
impl<C: AsyncComponent> AsyncComponentController<C> for AsyncController<C>
source§fn detach_runtime(&mut self)
fn detach_runtime(&mut self)
Dropping this type will usually stop the runtime of the component.
With this method you can give the runtime a static lifetime.
In other words, dropping the controller or connector will not stop
the runtime anymore, instead it will run until the app is closed.