1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
pub mod connection; pub mod iterator; pub mod session; mod topology; /// The wire protocol compression algorithm. #[derive(Copy, Clone)] pub enum Compression { /// LZ4 compression algorithm. LZ4, /// Snappy compression algorithm. Snappy, } impl ToString for Compression { fn to_string(&self) -> String { match self { Compression::LZ4 => "lz4".to_owned(), Compression::Snappy => "snappy".to_owned(), } } } #[cfg(test)] mod session_test;