implement clone for embedder and compositor proxies

This commit is contained in:
Gregory Terzian 2017-08-27 03:47:31 +08:00
parent 01c24e017d
commit 6bca3402a6
4 changed files with 14 additions and 8 deletions

View file

@ -43,7 +43,10 @@ impl EmbedderProxy {
}
self.event_loop_waker.wake();
}
pub fn clone_embedder_proxy(&self) -> EmbedderProxy {
}
impl Clone for EmbedderProxy {
fn clone(&self) -> EmbedderProxy {
EmbedderProxy {
sender: self.sender.clone(),
event_loop_waker: self.event_loop_waker.clone(),
@ -79,7 +82,10 @@ impl CompositorProxy {
}
self.event_loop_waker.wake();
}
pub fn clone_compositor_proxy(&self) -> CompositorProxy {
}
impl Clone for CompositorProxy {
fn clone(&self) -> CompositorProxy {
CompositorProxy {
sender: self.sender.clone(),
event_loop_waker: self.event_loop_waker.clone(),