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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.