4942dd4a43
This implements an option to emit `Arc<Self>` instead of `&self` in server traits. This enables implementor to reference `Self` data for indefinite duration, which may be useful for streaming requests. Fixes: #1351
13 lines
212 B
Protocol Buffer
13 lines
212 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package test;
|
|
|
|
service Test {
|
|
rpc TestRequest(SomeData) returns (SomeData);
|
|
}
|
|
|
|
message SomeData {
|
|
// include a bunch of data so there actually is something to compress
|
|
bytes data = 1;
|
|
}
|