Struct speedy2d::window::UserEventSender
source · [−]pub struct UserEventSender<UserEventType: 'static> { /* private fields */ }
Expand description
Allows user events to be sent to the event loop from other threads.
Implementations
Sends a user-defined event to the event loop. This will cause WindowHandler::on_user_event to be invoked on the event loop thread.
This may be invoked from a different thread to the one running the event loop.
Trait Implementations
Auto Trait Implementations
impl<UserEventType> RefUnwindSafe for UserEventSender<UserEventType> where
UserEventType: RefUnwindSafe,
impl<UserEventType> Send for UserEventSender<UserEventType> where
UserEventType: Send,
impl<UserEventType> Sync for UserEventSender<UserEventType> where
UserEventType: Sync,
impl<UserEventType> Unpin for UserEventSender<UserEventType> where
UserEventType: Unpin,
impl<UserEventType> UnwindSafe for UserEventSender<UserEventType> where
UserEventType: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more