Skip to content

Commit 26540eb

Browse files
LuoZijunThomasdezeeuw
authored andcommitted
impl Clone for Event
1 parent fa47aa3 commit 26540eb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/event/event.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use std::fmt;
1212
/// [`Poll::poll`]: ../struct.Poll.html#method.poll
1313
/// [`Poll`]: ../struct.Poll.html
1414
/// [`Token`]: ../struct.Token.html
15+
#[derive(Clone)]
1516
#[repr(transparent)]
1617
pub struct Event {
1718
inner: sys::Event,

src/sys/windows/event.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use miow::iocp::CompletionStatus;
55
use super::afd;
66
use crate::Token;
77

8+
#[derive(Clone)]
89
pub struct Event {
910
pub flags: u32,
1011
pub data: u64,

0 commit comments

Comments
 (0)