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
Used as an Error type throughout this library.
Gives structure to data to be sent or received from stream
.
Enums
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 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 that allows implementor to send and receive itself on UdpSocket with provided methods.