Enum spectra::bootstrap::EventSig [] [src]

pub enum EventSig {
    Ignored,
    Handled,
    Focused,
    Aborted,
}

Signals events can pass up back to their handlers to notify them how they have processed an event. They’re three kinds of signals:

  • EventSig::Ignored: the event should be passed to other handlers the parents knows about – if any – because it wasn’t handled (ignored);

  • EventSig::Handled: the event has been correctly handled;

  • EventSig::Focused: the event has been correctly handled, and the parent should consider that the this handler has now an exclusive focus on that event;

  • EventSig::Aborted: the event has been correctly handled and the parent handler should be aborted. This signal is typically used to kill all the handlers chain and thus quit the application.

Variants

Trait Implementations

impl Clone for EventSig
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for EventSig
[src]

impl Debug for EventSig
[src]

Formats the value using the given formatter.

impl Eq for EventSig
[src]

impl PartialEq for EventSig
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.