1#[cfg(test)]
2mod tests {
3 #[test]
4 fn it_works() {
5 assert_eq!(2 + 2, 4);
6 }
7}
8
9mod connection;
10pub use connection::Connection;
11
12pub mod server;
13
14pub mod frame;
15pub use frame::Frame;
16
17pub mod parse;
18pub use parse::Parse;
19
20pub mod command;
21pub use command::Command;
22
23pub mod db;
24pub use db::Db;
25pub use db::DbGuard;
26
27pub mod shutdown;
28pub use shutdown::Shutdown;
29
30pub mod client;
31
32
33pub const DEFAULT_PORT: &str = "9736";
34pub const MAX_CONNECTIONS: usize = 250;
35
36pub type Error = Box<dyn std::error::Error + Send + Sync>;
37
38pub type Result<T> = std::result::Result<T, Error>;
39