nardol 0.0.3

Simple framework that provides structure to data sent and received from network.
Documentation
#![warn(missing_docs)]

//! Nardol is a framework built on top of Tcp from [std::net] mostly providing structure
//! to data sent and received.
//!
//! Nardol is named after one of warning beacons of Gondor as those were also mean of communicating.

/// Contains [Bytes] new type struct around [Vec] of [u8] that is used throughout
/// this library to hold data in byte format and implementations of [TryFrom] for it.
mod bytes;

/// [Error type](std::error::Error) for this library.
mod error;

/// Contains traits that need to be implemented for data to be send and receive on network.
mod message;

/// Module containing [Packet] and [PacketKind].
mod packet;

/// Module containing [FromRon] and [ToRon] traits.
///
/// Those traits have default methods so they do not need any work on implementation.
mod ron;

// Re-exports of all public types.

pub use crate::bytes::Bytes;
pub use crate::error::{Error, ErrorKind};
pub use crate::message::{
    ContentType, ContextType, MetaDataType, OutputType, TcpMessage, UdpMessage,
};
pub use crate::packet::{Packet, PacketKind};
pub use crate::ron::{FromRon, ToRon};