Open crazyboycjr opened 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> }.
Box
mprc::Request::new(HelloRequest { name })
struct mrpc::Request<T> { req: mprc::alloc::Box::<T> }
_Originally posted by @crazyboycjr in https://github.com/koalanet-project/koala/pull/96#discussion_r867503148_
This is perfect! Next step, we can further hide this
Box
by using the semantic likemprc::Request::new(HelloRequest { name })
, where the definition looks likestruct mrpc::Request<T> { req: mprc::alloc::Box::<T> }
._Originally posted by @crazyboycjr in https://github.com/koalanet-project/koala/pull/96#discussion_r867503148_