Struct gpg_tui::term::event::EventHandler[][src]

pub struct EventHandler {
    pub key_input_disabled: Arc<AtomicBool>,
    // some fields omitted
}
Expand description

Basic event handler for terminal events.

Event types are handled in a common handler thread and returned to a receiver.

Fields

key_input_disabled: Arc<AtomicBool>

Is the key input disabled?

Implementations

Constructs a new instance of EventHandler.

Receive the next event from handler.

This function will always block the current thread if there is no data available and it’s possible for more data to be sent.

(Note that Tick event is frequently received depending on the tick rate.)

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The error type produced by a failed conversion.

Convert the given value into an approximately equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an approximately equivalent representation.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Approximate the subject with the default scheme.

Approximate the subject with a specific scheme.

Approximate the subject to a given type with the default scheme.

Approximate the subject to a given type with a specific scheme.

Convert the subject to a given type.

Attempt to convert the subject to a given type.

Attempt a value conversion of the subject to a given type.

Performs the conversion.

Performs the conversion.

The error type produced by a failed conversion.

Convert the given value into the subject type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the subject into the destination type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the given value into an exactly equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an exactly equivalent representation.