[][src]Struct glutin::event_loop::EventLoopProxy

pub struct EventLoopProxy<T> where
    T: 'static, 
{ /* fields omitted */ }

Used to send custom events to EventLoop.

Implementations

impl<T> EventLoopProxy<T> where
    T: 'static, 
[src]

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

Send an event to the EventLoop from which this proxy was created. This emits a UserEvent(event) event in the event loop, where event is the value passed to this function.

Returns an Err if the associated EventLoop no longer exists.

Trait Implementations

impl<T> Clone for EventLoopProxy<T> where
    T: 'static, 
[src]

impl<T> Debug for EventLoopProxy<T> where
    T: 'static, 
[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for EventLoopProxy<T>

impl<T> Send for EventLoopProxy<T> where
    T: Send

impl<T> !Sync for EventLoopProxy<T>

impl<T> Unpin for EventLoopProxy<T>

impl<T> !UnwindSafe for EventLoopProxy<T>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.