phoenix-dataplane / phoenix

Phoenix dataplane system service
https://phoenix-dataplane.github.io
Apache License 2.0
51 stars 9 forks source link

mrpc::Request<T> to avoid user manually creating mrpc::Box #97

Open crazyboycjr opened 2 years ago

crazyboycjr commented 2 years ago

This is perfect! Next step, we can further hide this Box by using the semantic like mprc::Request::new(HelloRequest { name }), where the definition looks like struct mrpc::Request<T> { req: mprc::alloc::Box::<T> }.

_Originally posted by @crazyboycjr in https://github.com/koalanet-project/koala/pull/96#discussion_r867503148_

crazyboycjr commented 2 years ago

145