Skip to main content

to_status

Function to_status 

Source
pub fn to_status(err: Error) -> Status
Expand description

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.