Skip to content

Commit

Permalink
impl Clone for Event
Browse files Browse the repository at this point in the history
  • Loading branch information
LuoZijun authored and Thomasdezeeuw committed Dec 9, 2020
1 parent fa47aa3 commit 26540eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/event/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use std::fmt;
/// [`Poll::poll`]: ../struct.Poll.html#method.poll
/// [`Poll`]: ../struct.Poll.html
/// [`Token`]: ../struct.Token.html
#[derive(Clone)]
#[repr(transparent)]
pub struct Event {
inner: sys::Event,
Expand Down
1 change: 1 addition & 0 deletions src/sys/windows/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use miow::iocp::CompletionStatus;
use super::afd;
use crate::Token;

#[derive(Clone)]
pub struct Event {
pub flags: u32,
pub data: u64,
Expand Down

0 comments on commit 26540eb

Please sign in to comment.