pub enum Error {
ZenityNotInstalled(Error),
UnexpectedIoError(Error),
InvalidUtf8FromStdout(FromUtf8Error),
MissingExitCode,
ParseResultFailure(Error),
}
Expand description
The errors that may occur when trying to launch a Zenity dialog.
Variants§
ZenityNotInstalled(Error)
Failed to find Zenity
UnexpectedIoError(Error)
A currently untracked error type occured when trying to invoke Zenity.
InvalidUtf8FromStdout(FromUtf8Error)
If Zenity response with a non-utf8-compliant response, we won’t be able to decode and respond. Typically, this error should never actually occur and if it does, please report it.
MissingExitCode
An error that should never occur. Yet, the std::process::Command does not guarantee that a code is produced, so we may potentially this error in the off chance that one is not returned.
ParseResultFailure(Error)
Occurs if the output from Zenity could not be converted to crate::ZenityOutput. This would typically indicate a bug in this crate, so if it occurs, please open an issue!
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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