pub trait Open: Sized {
// Required methods
fn open<App>(self, app: &App) -> Result<Option<WindowHandle>>
where App: Application;
fn run_in(self, app: PendingApp) -> Result;
}Expand description
A type that can be opened as a window in an application.
Required Methods§
sourcefn open<App>(self, app: &App) -> Result<Option<WindowHandle>>where
App: Application,
fn open<App>(self, app: &App) -> Result<Option<WindowHandle>>where
App: Application,
Opens the provided type as a window inside of app.
sourcefn run_in(self, app: PendingApp) -> Result
fn run_in(self, app: PendingApp) -> Result
Runs the provided type inside of the pending app, returning Ok(())
upon successful execution and program exit. Note that this function may
not ever return on some platforms.
Object Safety§
This trait is not object safe.