capnproto / capnproto-rust

Cap'n Proto for Rust
MIT License
2.06k stars 222 forks source link

Implement `Results::set_pipeline()` #515

Closed dwrensha closed 2 months ago

dwrensha commented 2 months ago

This provides the same functionality as capnproto-c++'s CallContext::setPipeline(), but with a slightly different API.

Whereas in capnproto-c++ setPipeline() requires usage of a PipelineBuilder, here we just re-use the existing Results message. You call set_pipeline() after you've filled in the capabilities in the result message, and then the RPC system is allowed to start running pipelined calls on the capabilities.