Expand description
§serio
This crate provides the Sink
and Stream
traits which are similar to futures::Sink
and futures::Stream
except they work with any serializable types.
Much of the functionality from this crate was either adapted or directly copied from the futures
project. Inspiration was also taken from the tokio-serde
crate.
§License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Re-exports§
pub use codec::Deserializer;
pub use codec::Framed;
pub use codec::Serializer;
pub use sink::IoSink;
pub use sink::Sink;
pub use sink::SinkExt;
pub use stream::IoStream;
pub use stream::Stream;
pub use stream::StreamExt;
Modules§
- channel
- Memory channels for sending and receiving serializable types. Useful for testing.
- codec
- Utilities for converting framed transports to streams and sinks using a codec.
- sink
- Sink types and traits.
- stream
- Stream types and traits.
Structs§
- Futures
Compat - Compatibility wrapper for futures traits.
Traits§
- Deserialize
- A deserializable type.
- Duplex
- A duplex.
- IoDuplex
- A duplex with a
std::io::Error
error type. - Serialize
- A serializable type.