protohackers/problem_06/src/lib.rs

19 lines
359 B
Rust
Raw Normal View History

2023-05-06 05:41:24 +00:00
mod connection;
pub use connection::Connection;
pub mod frame;
pub use frame::ClientFrames;
2023-05-06 05:41:24 +00:00
pub mod db;
2023-05-06 05:41:24 +00:00
pub mod server;
mod shutdown;
use shutdown::Shutdown;
2023-05-07 06:32:07 +00:00
pub const DEFAULT_IP: &'static str = "0.0.0.0";
2023-05-06 05:41:24 +00:00
pub const DEFAULT_PORT: u16 = 1222;
pub type Error = Box<dyn std::error::Error + Send + Sync>;
pub type Result<T> = std::result::Result<T, Error>;