pub enum Error {
IoError(Error),
ParseIntError(ParseIntError),
Interrupted,
Blank,
InvalidWidth(&'static str),
NotFound,
ConfigErrorMessageAndOptions,
CustomKeyboardShortcut(i32),
}
Expand description
Rofi Error Type
Variants§
IoError(Error)
IO Error
ParseIntError(ParseIntError)
Parse Int Error, only occurs when getting the index.
Interrupted
Error returned when the user has interrupted the action
Blank
Error returned when the user chose a blank option
InvalidWidth(&'static str)
Error returned the width is invalid, only returned in Rofi::width()
NotFound
Error, when the input of the user is not found. This only occurs when getting the index.
ConfigErrorMessageAndOptions
Incompatible configuration: cannot specify non-empty options and message_only.
CustomKeyboardShortcut(i32)
A custom keyboard shortcut was used
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)>
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()
source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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