pub enum RustofiResult {
Selection(String),
Action(String),
Success,
Blank,
Error,
Cancel,
Exit,
}
Expand description
enum declaring all possible return values from a rofi window constructed
using this library. Callbacks should also generally return this type, specifying
Success
, Error
, Exit
or Cancel
in most cases
Variants§
Selection(String)
A standard item
Action(String)
An action item
Success
The operation completed successfully
Blank
The blank entry was selected. Note this entry isn’t actually blank but a single space
Error
Something went wrong creating the rofi window or in the callback
Cancel
ItemList
or ActionList
was cancelled, used to return to a main menu
Exit
Used internally when the automatically added [exit]
entry is selected
Auto Trait Implementations§
impl Freeze for RustofiResult
impl RefUnwindSafe for RustofiResult
impl Send for RustofiResult
impl Sync for RustofiResult
impl Unpin for RustofiResult
impl UnwindSafe for RustofiResult
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