[][src]Struct alacritty::event::Processor

pub struct Processor<N> { /* fields omitted */ }

The event processor

Stores some state from received events and dispatches actions when they are triggered.

Methods

impl<N: Notify> Processor<N>[src]

pub fn new(
    notifier: N,
    resize_tx: Sender<PhysicalSize>,
    options: &Options,
    config: &Config,
    ref_test: bool,
    size_info: SizeInfo
) -> Processor<N>
[src]

Create a new event processor

Takes a writer which is expected to be hooked up to the write end of a pty.

pub fn process_events<'a>(
    &mut self,
    term: &'a FairMutex<Term>,
    window: &mut Window
) -> MutexGuard<'a, Term>
[src]

Process events. When wait_for_event is set, this method is guaranteed to process at least one event.

pub fn update_config(&mut self, config: &Config)[src]

Trait Implementations

impl<N> OnResize for Processor<N>[src]

Notify that the terminal was resized

Currently this just forwards the notice to the input processor.

Auto Trait Implementations

impl<N> Send for Processor<N> where
    N: Send

impl<N> !Sync for Processor<N>

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.

impl<T> Erased for T[src]