[−][src]Crate agilulf_protocol
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
| reply | |
| request |
Structs
| AsyncReadBuffer | A Read buffer to provide |
| AsyncWriteBuffer | Actually this struct doesn't have any buffer. It's only a wrapper for |
| 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 |
Enums
| DatabaseError | |
| ProtocolError |
Type Definitions
| DatabaseResult | |
| Result |