pub struct Application<B> { /* private fields */ }Implementations§
Source§impl<B> Application<B>
impl<B> Application<B>
pub fn with_backend(backend: B) -> Self
pub fn memory_options(self, options: MemoryOptions) -> Self
pub fn window_options(self, options: WindowOptions) -> Self
pub fn provide<T>(self, value: T) -> Self
pub fn executor(self, executor: impl UiExecutor) -> Self
pub fn command<C>(self, handler: impl CommandHandler<C>) -> Selfwhere
C: Command,
pub fn on_render_error( self, handler: impl Fn(&RenderError) + Send + Sync + 'static, ) -> Self
pub fn font_families(self, families: &'static [&'static str]) -> Self
pub fn font_assets(self, assets: Vec<FontAsset>) -> Self
Auto Trait Implementations§
impl<B> !RefUnwindSafe for Application<B>
impl<B> !UnwindSafe for Application<B>
impl<B> Freeze for Application<B>where
B: Freeze,
impl<B> Send for Application<B>where
B: Send,
impl<B> Sync for Application<B>where
B: Sync,
impl<B> Unpin for Application<B>where
B: Unpin,
impl<B> UnsafeUnpin for Application<B>where
B: UnsafeUnpin,
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