Struct rotor_capnp::Capnp [] [src]

pub struct Capnp<E: Endpoint> { /* fields omitted */ }

Adaptor for receiving and sending Cap'n Proto messages over a stream connection.

Trait Implementations

impl<E: Endpoint> Protocol for Capnp<E>
[src]

Starting the protocol (e.g. accepted a socket)

The action WaitBytes or WaitDelimiter is complete Read more

The action Flush is complete

Timeout happened, which means either deadline reached in Bytes, Delimiter, Flush. Or Sleep has passed. Read more

Message received (from the main loop)

The method is called when too much bytes are read but no delimiter is found within the number of bytes specified. Or end of stream reached Read more