wireframe 0.3.0

Simplify building servers and clients for custom binary protocols.
Documentation
//! Fragment metadata primitives for transparent message splitting.
//!
//! This module collects the domain types used by the fragmentation and
//! reassembly layer. Each sub-module focuses on a single concept to keep the
//! code small and easy to audit while still providing a cohesive API at the
//! crate root.

pub mod adapter;
pub mod config;
pub mod error;
pub mod fragmenter;
pub mod header;
pub mod id;
pub mod index;
pub mod packet;
pub mod payload;
pub mod reassembler;
pub mod series;

pub use adapter::{DefaultFragmentAdapter, FragmentAdapter, FragmentAdapterError};
pub use config::FragmentationConfig;
pub use error::{FragmentError, FragmentStatus, FragmentationError, ReassemblyError};
pub use fragmenter::{FragmentBatch, FragmentFrame, Fragmenter};
pub use header::FragmentHeader;
pub use id::MessageId;
pub use index::FragmentIndex;
pub use packet::{FragmentParts, Fragmentable, fragment_packet};
pub use payload::{
    FRAGMENT_MAGIC,
    decode_fragment_payload,
    encode_fragment_payload,
    fragment_overhead,
};
pub use reassembler::{ReassembledMessage, Reassembler};
pub use series::FragmentSeries;

#[cfg(test)]
mod tests;