use std::sync::mpsc::{Receiver, Sender}; //type Decoded = String; //type Encoded = String; // trait Handler { // fn process(code: State) -> Message; // fn send(socket: &WebSocketStream, msg: Message); //} // pub struct MessageServer { // new_message: bool, // text: String, // } // pub struct MessageClient { // message_queue: Vec, // } // impl MessageServer { // fn new() -> MessageServer { // MessageServer { // new_message: false, // text: String::from(""), // } // } // } // impl MessageClient { // fn new() -> MessageClient { // MessageClient { // message_queue: vec![], // } // } //} pub struct PackedMessage { pub message: String, } pub type SP = Sender; pub type RP = Receiver;