Menu

Enum

ConfigError

kurogane::ConfigErrorSource
#[non_exhaustive] pub enum ConfigError { DuplicateHandler(String), InvalidScheme { name: String, reason: &'static str }, DuplicateScheme(String), CapabilityCommand(String), OpaqueOrigin(String), SchedulerWithRunLoop, InvalidWindowOptions(&'static str), WindowWhenEmbedded, InvalidWindowClass(&'static str), InvalidWindowIcon, InvalidProfileDir(&'static str), }

One problem in the App builder configuration, reported by build() / run() / start_embedded() as RuntimeError::InvalidConfiguration.

Variants

#DuplicateHandler(String)

Two handlers share a name. Commands, async and binary commands, streams and capability commands share one namespace.

#InvalidScheme { name: String, reason: &'static str }

A custom scheme name is invalid or reserved.

#DuplicateScheme(String)

Two custom schemes share a name.

#CapabilityCommand(String)

An ACL rule and a native capability both claim a command.

#OpaqueOrigin(String)

An ACL rule names the opaque origin, which would match every frame without a host.

#SchedulerWithRunLoop

App::run was given a pump scheduler, which requires the application to drive CEF’s message loop itself.

#InvalidWindowOptions(&'static str)

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

#WindowWhenEmbedded

App::window was given to an application started with App::start_embedded, which has no start window.

#InvalidWindowClass(&'static str)

App::window_class was given a class no window manager can take, named here.

#InvalidWindowIcon

App::window_icon was given bytes that are not a PNG.

#InvalidProfileDir(&'static str)

App::profile_dir was given a directory no profile can be in, named here.

Trait implementations