[][src]Enum rustofi::RustofiResult

pub enum RustofiResult {
    Selection(String),
    Action(String),
    Success,
    Blank,
    Error,
    Cancel,
    Exit,
}

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

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]