summaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.rs')
-rw-r--r--src/event.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/event.rs b/src/event.rs
index 95d5a12..6339afe 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -19,7 +19,7 @@ pub enum EventKind<Packet, Uid>
where
Uid: PartialEq,
{
- Connection(ConnectionEvent),
+ Connection(ConnectionEvent<Uid>),
PacketReceived(PacketReceivedEvent<Packet>),
PacketSent(PacketSentEvent<Packet>),
Disconnect(DisconnectEvent<Uid>),
@@ -30,13 +30,13 @@ pub struct Event<Packet, Uid>
where
Uid: PartialEq,
{
- #[getset(get = "pub")]
+ #[get = "pub"]
instant: Instant,
- #[getset(get = "pub")]
+ #[get = "pub"]
connection_id: Uid,
canceled: Cell<bool>,
- #[getset(get = "pub")]
+ #[get = "pub"]
kind: EventKind<Packet, Uid>,
}