pub struct ApplicationRuntime { /* private fields */ }
Expand description
A windowed and event-driven runtime that can be used to render a scene on the primary GPU across Windows, MacOS, and Linux.
Trait Implementations§
Source§impl Runtime<(), String> for ApplicationRuntime
impl Runtime<(), String> for ApplicationRuntime
Source§fn run(self) -> Result<(), String>
fn run(self) -> Result<(), String>
Runs the event loop for the Application Runtime which takes ownership of all components, the windowing the render context, and anything else relevant to the runtime.
Source§fn on_start(&mut self)
fn on_start(&mut self)
When an application runtime starts, it will attach all of the components that have been added during the construction phase in the users code.
type Component = Box<dyn Component<ComponentResult, String>>
fn on_stop(&mut self)
Auto Trait Implementations§
impl !Freeze for ApplicationRuntime
impl !RefUnwindSafe for ApplicationRuntime
impl !Send for ApplicationRuntime
impl !Sync for ApplicationRuntime
impl Unpin for ApplicationRuntime
impl !UnwindSafe for ApplicationRuntime
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