Struct winit::event_loop::EventLoopProxy[][src]

pub struct EventLoopProxy<T: 'static> {
    event_loop_proxy: EventLoopProxy<T>,

Used to send custom events to EventLoop.


event_loop_proxy: EventLoopProxy<T>


impl<T: 'static> EventLoopProxy<T>[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: 'static> Clone for EventLoopProxy<T>[src]

impl<T: 'static> Debug for EventLoopProxy<T>[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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.