Menu

Enum

RuntimeError

kurogane::RuntimeErrorSource
#[non_exhaustive] pub enum RuntimeError { InvalidAssetRoot(PathBuf), InvalidFrontendUrl { url: String, source: Box<dyn Error + Send + Sync> }, AssetRootMissing(PathBuf), EntrypointMissing(PathBuf), AssetRootUnavailable { path: PathBuf, source: Error }, CefInitializeFailed { code: i32 }, CefNotInstalled { expected: Option<PathBuf> }, CefPathMissing(PathBuf), CefVersionMismatch { path: PathBuf, location: CefLocation, found: String, expected: String }, InvalidCefRuntime { path: PathBuf, location: CefLocation, source: Box<dyn Error + Send + Sync> }, ExecutableUnavailable(Error), BundleHelperUnavailable { source: Box<dyn Error + Send + Sync> }, CacheUnavailable { path: PathBuf, source: Error }, BrowserCreationFailed, WindowCreationFailed, InvalidWindowOptions(&'static str), WindowNameTaken { name: String, window: WindowId }, ShuttingDown, UnsupportedParentWindow, SandboxUnsupported { reason: String }, SandboxUnavailable { reason: String }, InvalidConfiguration(Vec<ConfigError>), InvalidFilesystem(FsConfigError), }

Failure to start the application or to open a window or a browser.

Variants

#InvalidAssetRoot(PathBuf)

The frontend path given to App::new exists but is not a directory.

#InvalidFrontendUrl { url: String, source: Box<dyn Error + Send + Sync> }

The frontend URL could not be parsed; source says why.

#AssetRootMissing(PathBuf)

The frontend directory given to App::new does not exist.

#EntrypointMissing(PathBuf)

The frontend directory exists but has no index.html to serve; none, a directory by that name, or a link out of the directory.

#AssetRootUnavailable { path: PathBuf, source: Error }

The frontend directory at path cannot be read; source says why.

#CefInitializeFailed { code: i32 }

Chromium refused to start after Kurogane found its runtime; its log names the cause.

#CefNotInstalled { expected: Option<PathBuf> }

No Chromium runtime beside the executable, no CEF_PATH and nothing installed at expected, which is None for a user without a local data directory.

#CefPathMissing(PathBuf)

CEF_PATH names a directory that does not exist; no other runtime runs in its place.

#CefVersionMismatch { path: PathBuf, location: CefLocation, found: String, expected: String }

The Chromium runtime at path, from location, is another CEF build, commit found, than the one the application was built against, expected.

#InvalidCefRuntime { path: PathBuf, location: CefLocation, source: Box<dyn Error + Send + Sync> }

The Chromium runtime at path, from location, cannot be used; source says why.

#ExecutableUnavailable(Error)

The path to the running executable could not be determined.

#BundleHelperUnavailable { source: Box<dyn Error + Send + Sync> }

The macOS application bundle the executable belongs to has no single helper app to start Chromium’s processes from; source says what it holds.

#CacheUnavailable { path: PathBuf, source: Error }

The profile directory at path cannot be created; source says why.

#BrowserCreationFailed

CEF created no browser.

#WindowCreationFailed

CEF created no window.

#InvalidWindowOptions(&'static str)

AppInstance::create_window was given options no window can have, named here.

#WindowNameTaken { name: String, window: WindowId }

A window was asked for under name (WindowOptions::name), which the open window window holds. The name is free once that window’s close is reported (App::on_window_closing).

#ShuttingDown

The application is ending and no browser may open after AppHandle::shutdown, a forced AppHandle::close_all_browsers, or AppInstance::shutdown has begun.

#UnsupportedParentWindow

The window given to AppInstance::create_child_browser cannot parent a browser. CEF embeds only in a Win32 window, an AppKit view or an X11 window. A Wayland surface is not one of them.

#SandboxUnsupported { reason: String }

The requested sandbox cannot be enforced on this platform or layout.

#SandboxUnavailable { reason: String }

The requested sandbox is supported but not usable on this machine.

#InvalidConfiguration(Vec<ConfigError>)

The App builder was misconfigured. Every problem is listed; nothing was started.

#InvalidFilesystem(FsConfigError)

The filesystem configuration passed to App::filesystem was rejected; nothing was started.

Trait implementations