Add Send constraint to WindowHandler::Message
This commit is contained in:
parent
35a9841b29
commit
b79a7fbcf5
|
@ -30,7 +30,7 @@ pub enum Parent {
|
|||
unsafe impl Send for Parent {}
|
||||
|
||||
pub trait WindowHandler {
|
||||
type Message;
|
||||
type Message: Send;
|
||||
|
||||
fn on_frame(&mut self);
|
||||
fn on_event(&mut self, window: &mut Window, event: Event);
|
||||
|
|
Loading…
Reference in a new issue