stepancheg / grpc-rust

Rust implementation of gRPC
MIT License
1.37k stars 124 forks source link

Make `Error` enum fields public? #92

Closed netvl closed 7 years ago

netvl commented 7 years ago

Currently all Error enum fields are private, therefore there is no way for the application to analyze the response except by parsing the err.to_string() result, which is quite suboptimal. At least it would be great to have a way to access the GrpcMessageError structure in case when this it is the actual error variant, because it may contain server logic-defined payload.

netvl commented 7 years ago

Sorry, need to sleep, forgot that enum entries can't be private :(