Expand description

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.

Structs

Wrapper around Vec of u8 used to store data in form of bytes in this library.

Used as an Error type throughout this library.

Gives structure to data to be sent or received from stream.

Enums

Enum containing all error kinds used in nardol.

Determines kind of Packet.

Traits

Trait that needs to be implemented for type that will be used as content inside a message.

Trait that marks data as Context, that can be used inside MetaDataType and ContentType methods.

Trait with default method, that allows to create an implementor from given RON.

Trait that needs to be implemented for type that will be used as metadata inside a message.

Trait that marks data as Output, that can be used inside MetaDataType and ContentType methods.

Trait that allows implementor to send and receive itself via TcpStream with provided TcpMessage::send and TcpMessage::receive.

Trait with default methods that allow implementors parse them to RON format.

Trait that allows implementor to send and receive itself on UdpSocket with provided methods.