pub struct AsyncController<C>where
C: AsyncComponent,{ /* private fields */ }Expand description
Controls the component from afar.
Trait Implementations§
Source§impl<C> AsyncComponentController<C> for AsyncController<C>where
C: AsyncComponent,
impl<C> AsyncComponentController<C> for AsyncController<C>where
C: AsyncComponent,
Source§fn sender(&self) -> &Sender<<C as AsyncComponent>::Input>
fn sender(&self) -> &Sender<<C as AsyncComponent>::Input>
Provides access to the component’s sender.
Source§fn widget(&self) -> &<C as AsyncComponent>::Root
fn widget(&self) -> &<C as AsyncComponent>::Root
Returns the root widget of the 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.
Source§fn emit(&self, event: <C as AsyncComponent>::Input)
fn emit(&self, event: <C as AsyncComponent>::Input)
Emits an input to the component.
Auto Trait Implementations§
impl<C> Freeze for AsyncController<C>
impl<C> RefUnwindSafe for AsyncController<C>
impl<C> Send for AsyncController<C>
impl<C> Sync for AsyncController<C>
impl<C> Unpin for AsyncController<C>
impl<C> UnwindSafe for AsyncController<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