pub struct InitCx<'a, S: Spec> { /* private fields */ }Expand description
Startup door: commands only.
Implementations§
Source§impl<'a, S: Spec> InitCx<'a, S>
impl<'a, S: Spec> InitCx<'a, S>
Sourcepub fn command(&mut self, cmd: AppCommand<S>)
pub fn command(&mut self, cmd: AppCommand<S>)
Enqueue a command, applied from the first tick on.
Sourcepub fn handle(&self) -> Handle<S>
pub fn handle(&self) -> Handle<S>
The app’s own Handle: keep a clone to dispatch
commands or request_repaint from
background work on any host (native, web, headless).
Auto Trait Implementations§
impl<'a, S> !RefUnwindSafe for InitCx<'a, S>
impl<'a, S> !UnwindSafe for InitCx<'a, S>
impl<'a, S> Freeze for InitCx<'a, S>
impl<'a, S> Send for InitCx<'a, S>
impl<'a, S> Sync for InitCx<'a, S>
impl<'a, S> Unpin for InitCx<'a, S>
impl<'a, S> UnsafeUnpin for InitCx<'a, S>
Blanket Implementations§
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