2023-04-23 21:28:45 +00:00
|
|
|
mod connection;
|
|
|
|
|
pub use connection::Connection;
|
|
|
|
|
|
|
|
|
|
pub mod frame;
|
|
|
|
|
pub use frame::Frame;
|
|
|
|
|
|
|
|
|
|
pub mod server;
|
|
|
|
|
|
|
|
|
|
mod shutdown;
|
|
|
|
|
use shutdown::Shutdown;
|
|
|
|
|
|
2023-04-24 21:04:13 +00:00
|
|
|
pub const DEFAULT_PORT: u16 = 1222;
|
2023-04-23 21:28:45 +00:00
|
|
|
|
|
|
|
|
pub type Error = Box<dyn std::error::Error + Send + Sync>;
|
|
|
|
|
pub type Result<T> = std::result::Result<T, Error>;
|