1
0
Fork 0

Add Send constraint to WindowHandler::Message

This commit is contained in:
Joakim Frostegård 2020-11-29 15:40:47 +01:00
parent 35a9841b29
commit b79a7fbcf5

View file

@ -30,7 +30,7 @@ pub enum Parent {
unsafe impl Send for Parent {} unsafe impl Send for Parent {}
pub trait WindowHandler { pub trait WindowHandler {
type Message; type Message: Send;
fn on_frame(&mut self); fn on_frame(&mut self);
fn on_event(&mut self, window: &mut Window, event: Event); fn on_event(&mut self, window: &mut Window, event: Event);