Module capnp_futures::serialize[][src]

Asynchronous reading and writing of messages using the standard stream framing.

Traits

AsOutputSegments

Something that contains segments ready to be written out.

Functions

read_messageDeprecated
try_read_message

Begins an asynchronous read of a message from reader. Returns None if reader 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 returns None.

write_message

Writes the provided message to writer. Does not call flush().