aboutsummaryrefslogtreecommitdiff
path: root/games/rstnode/rst-core/src/net/handler.rs
blob: aa0ab6a281c52eebdf03790ad6fcdbd9a38df527 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{
    net::Client,
    server::Server,
    wire::{Request, Response},
};
use async_std::sync::{Receiver, Sender};

pub struct Handler {
    tx: Sender<Response>,
}

impl Handler {
    /// Start a message handler with a handle to send a reply back to the clients
    pub fn start(req: Request) {
        
    }
}