Expand description
This crate contains the most part of serialize and deserialize Agilulf KV Protocol
The core function of this crate is provided by these methods:
-
into_command_streaminrequest.rs. This will convert aTcpStreaminto aStream<Command> -
into_reply_sinkinreply.rs. This will convert aTcpSinkinto aSink<Reply> -
The implementation of
Into<Vec<u8>>forCommandandReply. As this crate provides both serialization and deserialization for both client and server. So they are all needed.
Re-exports§
pub use reply::Reply;pub use reply::Status;pub use request::Command;pub use request::DeleteCommand;pub use request::GetCommand;pub use request::PutCommand;pub use request::ScanCommand;
Modules§
Structs§
- Async
Read Buffer - A Read buffer to provide
read_exactandread_linemethods. - Async
Write Buffer - Actually this struct doesn’t have any buffer. It’s only a wrapper for
AsyncWrite - Slice
- In the most time of this project, the key or value will be represented by a so called Slice (actually
not a slice but a
Vec<u8>).