#[non_exhaustive]pub enum ErrorKind {
Show 15 variants
NoDataDir,
AlreadyRunning,
Setup,
Window,
Io,
Closed,
Smoke,
Clipboard,
Notification,
Autostart,
Tray,
Shortcut,
NotExternal,
Update,
InRuntime,
}Expand description
The kind of an Error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoDataDir
The environment does not say where the application’s directory is.
AlreadyRunning
Another copy of the application runs and did not take this start’s command line.
Setup
The future given to App::run returned an error.
Window
The window or its web view could not be made or could not load.
Io
A file, the port, or the server failed.
Closed
The application is closing, so it opens and changes no window.
Smoke
A check of a smoke run failed.
Clipboard
The system clipboard could not be read or written.
Notification
The system did not show a notification.
Autostart
The entry that starts the application at login could not be read or written.
Tray
The tray icon could not be made, or its PNG could not be read.
Shortcut
The system did not register a global shortcut, as when another application holds it.
NotExternal
Os::open_external got a URL without a scheme.
The system would open such a URL as a file.
Update
Finding, downloading, verifying, or installing a new version failed.
InRuntime
App::run was called inside a Tokio runtime.
run starts a runtime of its own, so main is not #[tokio::main].
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.