protohackers/problem_06/src/lib.rs

18 lines
378 B
Rust
Raw Normal View History

2023-05-06 05:41:24 +00:00
mod connection;
2023-05-21 12:38:53 +00:00
mod db;
mod frame;
mod heartbeat;
2023-05-06 05:41:24 +00:00
pub mod server;
mod shutdown;
2023-05-21 12:38:53 +00:00
mod ticketing;
pub use connection::Connection;
pub use frame::ClientFrames;
2023-05-06 05:41:24 +00:00
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>;