<bfrog>
I'm a bit confused by the capnp-rpc generated code and how to use it with rust, I'm wondering given that the types are known why the function calls look like fn call(&mut self, req: CallParams, mut res: CallResults) -> Promise<(), Error>
<bfrog>
I'm mostly wondering why it wouldn't just look more like the interface I define in the capnp file
tg has joined #sandstorm
jemc has quit [Ping timeout: 258 seconds]
harish has joined #sandstorm
xming has joined #sandstorm
pie_ has quit [Ping timeout: 256 seconds]
harish has quit [Ping timeout: 240 seconds]
wew_ has joined #sandstorm
ThePurgingPanda has quit [Ping timeout: 256 seconds]
rahul|q42 has joined #sandstorm
ThePurgingPanda has joined #sandstorm
wew_ has quit [Ping timeout: 240 seconds]
harish has joined #sandstorm
[d__d] has quit [Remote host closed the connection]
[d__d] has joined #sandstorm
larjona has quit [Ping timeout: 252 seconds]
wew has joined #sandstorm
ThePurgingPanda has quit [Ping timeout: 258 seconds]
afuentes has joined #sandstorm
harish has quit [Ping timeout: 248 seconds]
harish has joined #sandstorm
ThePurgingPanda has joined #sandstorm
wew has quit [Ping timeout: 260 seconds]
wolcen has quit [Ping timeout: 240 seconds]
NwS has joined #sandstorm
wew has joined #sandstorm
ThePurgingPanda has quit [Ping timeout: 252 seconds]
prettyvanilla_ has joined #sandstorm
prettyvanilla has quit [Ping timeout: 240 seconds]
rahul|q42 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rahul|q42 has joined #sandstorm
ThePurgingPanda has joined #sandstorm
rahul|q42 has quit [Client Quit]
wew has quit [Ping timeout: 240 seconds]
rahul|q42 has joined #sandstorm
rahul|q42 has quit [Client Quit]
wolcen has joined #sandstorm
rahul|q42 has joined #sandstorm
rahul|q42 has quit [Client Quit]
rahul|q42 has joined #sandstorm
rahul|q42 has quit [Client Quit]
rahul|q42 has joined #sandstorm
rahul|q42 has quit [Client Quit]
rahul|q42 has joined #sandstorm
rahul|q42 has quit [Client Quit]
wew has joined #sandstorm
ThePurgingPanda has quit [Ping timeout: 256 seconds]
ThePurgingPanda has joined #sandstorm
wew has quit [Ping timeout: 252 seconds]
wolcen has quit [Ping timeout: 240 seconds]
wew has joined #sandstorm
ThePurgingPanda has quit [Ping timeout: 252 seconds]
ThePurgingPanda has joined #sandstorm
wew has quit [Ping timeout: 255 seconds]
samba_ has joined #sandstorm
wolcen has joined #sandstorm
pie__ has joined #sandstorm
wew has joined #sandstorm
ThePurgingPanda has quit [Ping timeout: 255 seconds]
samba_ has quit [Ping timeout: 240 seconds]
larjona has joined #sandstorm
jemc has joined #sandstorm
xet7 has quit [Quit: Leaving]
bodisiw has joined #sandstorm
ThePurgingPanda has joined #sandstorm
wew has quit [Ping timeout: 240 seconds]
<dwrensha>
bfrog: the Params and Results structs allow the RPC system to avoid copying the data
<dwrensha>
the data you read from Params still lives in the buffer that it was originally read into from the wire
<dwrensha>
and the data you write into Results gets directly put into the buffer that will eventually get written to the wire
<dwrensha>
in theory we could also provide a more Rust-native interface
<dwrensha>
just like in theory we could generate Rust-native structs for each struct defined in a capnp file
demonimin has quit [Remote host closed the connection]
demonimin has joined #sandstorm
wew has joined #sandstorm
ThePurgingPanda has quit [Ping timeout: 240 seconds]
BlueNinja has joined #sandstorm
<BlueNinja>
mornin
demonimin has quit [Remote host closed the connection]
wolcen has quit [Ping timeout: 240 seconds]
wolcen has joined #sandstorm
demonimin has joined #sandstorm
jemc has quit [Ping timeout: 248 seconds]
ThePurgingPanda has joined #sandstorm
wew has quit [Ping timeout: 248 seconds]
wolcen has quit [Ping timeout: 240 seconds]
jemc has joined #sandstorm
bodisiw has quit [Read error: Connection reset by peer]