pub trait Open: Sized {
// Required methods
fn open<App>(self, app: &mut App) -> Result<WindowHandle>
where App: Application + ?Sized;
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: &mut App) -> Result<WindowHandle>where
App: Application + ?Sized,
fn open<App>(self, app: &mut App) -> Result<WindowHandle>where
App: Application + ?Sized,
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.