pub fn to_status(err: Error) -> Status
Render a handler error for the v2 transports: the gRPC grpc-message trailer and, via tonic_rest::RestError, the REST error body. Classification and the credential scrub happen in classify and ApiError’s Display, shared with the v1 path.
grpc-message
tonic_rest::RestError
classify
ApiError
Display