1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
pub type KeepAliveCookie = u16; #[derive(Debug, PartialEq, Eq, Clone)] pub enum State { Client, Server, Done, } #[derive(Debug, Clone)] pub enum Message { KeepAlive(KeepAliveCookie), ResponseKeepAlive(KeepAliveCookie), Done, }