[][src]Trait pixel_widgets::EventLoop

pub trait EventLoop<T: Send>: Clone + Send {
    type Error;
    pub fn send_event(&self, event: T) -> Result<(), Self::Error>;
}

Trait for sending custom events to the event loop of the application

Associated Types

type Error[src]

The error returned when send_event fails

Loading content...

Required methods

pub fn send_event(&self, event: T) -> Result<(), Self::Error>[src]

Sends custom event to the event loop. Returns an Err if sending failed, for example when the event loop doesn't exist anymore.

Loading content...

Implementations on Foreign Types

impl<T: Send> EventLoop<T> for EventLoopProxy<T>[src]

type Error = EventLoopClosed<T>

Loading content...

Implementors

Loading content...