Module capnp_futures::serialize
source · Expand description
Asynchronous reading and writing of messages using the standard stream framing.
Traits
- Something that contains segments ready to be written out.
Functions
- Asynchronously reads a message from
reader
. - Asynchronously reads a message from
reader
. ReturnsNone
ifreader
has zero bytes left (i.e. is at end-of-file). To read a stream containing an unknown number of messages, you could call this function repeatedly until it returnsNone
. - Writes the provided message to
writer
. Does not callflush()
.