#[repr(C)]pub struct AppConfig {
pub log_level: AppLogLevel,
pub enable_visual_panic_hook: bool,
pub enable_logging_on_panic: bool,
pub enable_tab_navigation: bool,
pub termination_behavior: AppTerminationBehavior,
pub icon_provider: IconProviderHandle,
}Expand description
Configuration for optional features, such as whether to enable logging or panic hooks
Fields§
§log_level: AppLogLevelIf enabled, logs error and info messages.
Default is LevelFilter::Error to log all errors by default
enable_visual_panic_hook: boolIf the app crashes / panics, a window with a message box pops up.
Setting this to false disables the popup box.
enable_logging_on_panic: boolIf this is set to true (the default), a backtrace + error information
gets logged to stdout and the logging file (only if logging is enabled).
(STUB) Whether keyboard navigation should be enabled (default: true). Currently not implemented.
termination_behavior: AppTerminationBehaviorDetermines what happens when all windows are closed. Default: EndProcess (terminate when last window closes).
icon_provider: IconProviderHandleIcon provider for the application. Register icons here before calling App::run(). Each window will clone this provider (cheap, Arc-based).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppConfig
impl RefUnwindSafe for AppConfig
impl Send for AppConfig
impl Sync for AppConfig
impl Unpin for AppConfig
impl UnwindSafe for AppConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more