mid_net/lib.rs
1///! # Middleware network
2///!
3///! This package contains routines for the `Middleware`
4/// protocol, such as:
5/// - [`reader::MidReader`] - Protocol reader, consumes read
6/// side of the socket
7/// - [`writer::MidWriter`] - Protocol writer, consumes
8/// write side of the socket
9///
10///! read/write sides can be obtained through the `split()`
11///! function of the tokio's `TcpStream`
12
13/// # Reader
14///
15/// Refer to the [`MidReader`]
16pub mod reader;
17
18/// # Writer
19///
20/// Refer to the [`MidWriter`]
21pub mod writer;
22
23pub mod compression;
24pub mod utils;
25
26/// # Protocol enums
27pub mod proto;
28
29/// # Middleware errors
30pub mod error;
31
32pub mod ext;
33pub mod prelude;
34
35#[cfg(test)]
36mod tests;