substrate_data/wire/io/mod.rs
1//! Messages over a byte stream — a socket, a pipe: each message a frame,
2//! its length (a little-endian `u32`) and then its binary form. What
3//! programs say to each other (a program and its editor, a tool's service).
4
5#[cfg(feature = "tokio")]
6pub mod asynchronous;
7mod frame_reader;
8mod frame_writer;
9mod framing;
10#[cfg(test)]
11mod tests;
12
13pub use frame_reader::FrameReader;
14pub use frame_writer::FrameWriter;
15pub use framing::{Len, MAX_FRAME, read_frame, read_frame_bytes, write_frame, write_frame_bytes};