pub struct App<B: Backend> {
engine: Rc<Engine<Interpreter, B>>,
}Expand description
A running app: its state, its windows, and what each widget shows.
Fields§
§engine: Rc<Engine<Interpreter, B>>Implementations§
Source§impl<B: Backend> App<B>
impl<B: Backend> App<B>
Sourcepub fn start(
program: Program,
ui: Ui<B>,
on_error: ErrorHandler,
) -> Result<Self, RuntimeError>
pub fn start( program: Program, ui: Ui<B>, on_error: ErrorHandler, ) -> Result<Self, RuntimeError>
Sourcepub fn reload(&self, program: Program) -> Result<Self, RuntimeError>
pub fn reload(&self, program: Program) -> Result<Self, RuntimeError>
Starts program in this app’s windows, in place of this app. Each state it still
declares with the same name and type keeps its value; the others start over.
§Errors
When evaluating a starting value or building the new UI fails. Nothing has changed then, and this app keeps running.
§Panics
When program has errors; run only programs the checker accepted.
Trait Implementations§
Auto Trait Implementations§
impl<B> !RefUnwindSafe for App<B>
impl<B> !Send for App<B>
impl<B> !Sync for App<B>
impl<B> !UnwindSafe for App<B>
impl<B> Freeze for App<B>
impl<B> Unpin for App<B>
impl<B> UnsafeUnpin for App<B>
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