File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,8 @@ To create an RPC-enabled object, you must implement that trait.
8383struct MyBar {}
8484
8585impl :: foo_capnp :: bar :: Server for MyBar {
86- async fn baz (& self ,
86+ async fn baz (
87+ self : Rc <Self >,
8788 params : :: foo_capnp :: bar :: BazParams ,
8889 mut results : :: foo_capnp :: bar :: BazResults )
8990 -> Result <(), :: capnp :: Error >
@@ -123,7 +124,8 @@ Here's an example of a method implementation that does not return immediately:
123124struct MyQux {}
124125
125126impl :: foo_capnp :: qux :: Server for MyQux {
126- async fn quux (& mut self ,
127+ async fn quux (
128+ self : Rc <Self >,
127129 params : :: foo_capnp :: qux :: QuuxParams ,
128130 mut results : :: foo_capnp :: wux :: QuuxResults )
129131 -> Result <(), :: capnp :: Error >
Original file line number Diff line number Diff line change 3434//! // Rust server defining an implementation of Foo.
3535//! struct FooImpl;
3636//! impl foo::Server for FooImpl {
37- //! async fn identity(&self,
37+ //! async fn identity(
38+ //! self: Rc<Self>,
3839//! params: foo::IdentityParams,
3940//! mut results: foo::IdentityResults
4041//! ) -> Result<(), ::capnp::Error> {
You can’t perform that action at this time.
0 commit comments