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_stream
inrequest.rs
. This will convert aTcpStream
into aStream<Command>
-
into_reply_sink
inreply.rs
. This will convert aTcpSink
into aSink<Reply>
-
The implementation of
Into<Vec<u8>>
forCommand
andReply
. 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_exact
andread_line
methods. - 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>
).