[][src]Enum newt::widgets::form::ExitReason

pub enum ExitReason {
    HotKey(i32),
    Component(Box<dyn Component>),
    FDReady(RawFd),
    Timer,
}

The Form exit reason. Returned by Form.run().

Variants

HotKey(i32)

The Form exited due to a hot key press. Contains the key pressed.

Component(Box<dyn Component>)

The Form exited because a Component was activated. Contains the component.

FDReady(RawFd)

The Form exited due to activity on a file descriptor. Contains the file descriptor.

Timer

The Form exited because a timer timed out.

Trait Implementations

impl Debug for ExitReason[src]

impl PartialEq<ExitReason> for dyn Component[src]

impl<'a> PartialEq<ExitReason> for Form<'a>[src]

impl PartialEq<ExitReason> for Textbox[src]

impl PartialEq<ExitReason> for Entry[src]

impl PartialEq<ExitReason> for Scale[src]

impl PartialEq<ExitReason> for VerticalScrollbar[src]

impl PartialEq<ExitReason> for CompactButton[src]

impl PartialEq<ExitReason> for Button[src]

impl PartialEq<ExitReason> for Checkbox[src]

impl PartialEq<ExitReason> for Radiobutton[src]

impl PartialEq<ExitReason> for Label[src]

impl<D: Data> PartialEq<ExitReason> for Listbox<D>[src]

impl<D: Data> PartialEq<ExitReason> for CheckboxTree<D>[src]

impl<Rhs: Component> PartialEq<Rhs> for ExitReason[src]

impl PartialEq<i32> for ExitReason[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.