pub struct Controller<C: Component> { /* private fields */ }
Expand description
Controls the component from afar.
Trait Implementations§
Source§impl<C: Component> ComponentController<C> for Controller<C>
impl<C: Component> ComponentController<C> for Controller<C>
Source§fn state(&self) -> &StateWatcher<C>
fn state(&self) -> &StateWatcher<C>
Provides access to the state of a component.
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.
Auto Trait Implementations§
impl<C> Freeze for Controller<C>
impl<C> !RefUnwindSafe for Controller<C>
impl<C> !Send for Controller<C>
impl<C> !Sync for Controller<C>
impl<C> Unpin for Controller<C>
impl<C> !UnwindSafe for Controller<C>
Blanket Implementations§
Source§impl<C> AsyncPosition<()> for C
impl<C> AsyncPosition<()> for C
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more