summaryrefslogtreecommitdiff
path: root/src/event/connection.rs
blob: 4af2164623ee4fbc3f428fb22f20d98d01ce8634 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use getset::Getters;

#[derive(Getters)]
pub struct ConnectionEvent<Uid>
where
    Uid: PartialEq,
{
    #[get = "pub"]
    client_uid: Uid,
}

impl<Uid> ConnectionEvent<Uid>
where
    Uid: PartialEq,
{
    pub fn new(uid: Uid) -> Self {
        Self { client_uid: uid }
    }
}