1 2 3 4 5 6 7
#[derive(Debug,Clone,Copy,PartialEq,Eq)] pub enum State { Connecting, Open, Closing, Closed, }