👎Deprecated: This was a failed attempt at finding a suitable abstraction. The async-codec crate might be what you need instead.
Expand description
Traits for types that can be asynchronously serialized into AsyncWrites and deserialized from AsyncReads. Unlike serde’s approach, the serialized data does not need to be in memory at once, and it saves a step of copying.
Enums§
- Deserialize
Error Deprecated - An error that occured during deserialization.
Traits§
- Async
Deserialize Deprecated - A future that asynchronously serializes something from a wrapped AsyncRead and then returns the wrapped AsyncRead, the deserialized value, and how many bytes were read.
- Async
Serialize Deprecated - A future that asynchronously serializes something into a wrapped AsyncWrite and then returns the wrapped AsyncWrite and how many bytes were written.
- Async
Serialize Len Deprecated - An
AsyncSerialize
that can precompute the exact number of bytes to write. - Async
Serialize Ref Deprecated - A future that asynchronously serializes something by reference into a wrapped AsyncWrite.
- Async
Serialize RefLen Deprecated - An
AsyncSerializeRef
that can precompute the exact number of bytes to write. - Async
Writer Future Deprecated - Base trait for futures that write things into
AsyncWrite
s. - Async
Writer Future Len Deprecated - Base trait for futures that write things into
AsyncWrite
s and can precompute the exact number of bytes to write.