hgame 0.26.4

CG production management structs, e.g. of assets, personnels, progress, etc.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::*;

#[derive(Debug)]
pub struct Connection {
    pub id: u32,

    /// The `sink` of the WebSocket stream.
    pub sender: SplitSink<WebSocketStream<TcpStream>, Message>,
}

impl Connection {
    pub fn new(id: u32, sender: SplitSink<WebSocketStream<TcpStream>, Message>) -> Self {
        Self { id: id, sender }
    }
}