pub struct DesktopApp;Expand description
Entry point for constructing Rust-first desktop apps.
Implementations§
Source§impl DesktopApp
impl DesktopApp
Sourcepub fn from_bundle(bundle_dir: impl Into<PathBuf>) -> Result<DesktopAppBuilder>
pub fn from_bundle(bundle_dir: impl Into<PathBuf>) -> Result<DesktopAppBuilder>
Load bundle metadata and prepare an app for shared handler registration.
§Errors
Returns DesktopError when the bundle manifest cannot be read or parsed.
Sourcepub fn from_bundle_config(
config: DesktopBundleConfig,
) -> Result<DesktopAppBuilder>
pub fn from_bundle_config( config: DesktopBundleConfig, ) -> Result<DesktopAppBuilder>
Prepare a bundle-backed app with existing Rust state and registrations.
§Errors
Returns DesktopError when the bundle manifest cannot be read or parsed.
Sourcepub fn from_bundle_config_and_manifest(
config: DesktopBundleConfig,
manifest: DesktopBundleManifest,
) -> DesktopAppBuilder
pub fn from_bundle_config_and_manifest( config: DesktopBundleConfig, manifest: DesktopBundleManifest, ) -> DesktopAppBuilder
Prepare a bundle-backed app using an already-loaded manifest.
This avoids reading metadata twice when the host also needs it to initialize application storage or other shared services.
Auto Trait Implementations§
impl Freeze for DesktopApp
impl RefUnwindSafe for DesktopApp
impl Send for DesktopApp
impl Sync for DesktopApp
impl Unpin for DesktopApp
impl UnsafeUnpin for DesktopApp
impl UnwindSafe for DesktopApp
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