common_error::status_code

Function status_to_tonic_code

source
pub fn status_to_tonic_code(status_code: StatusCode) -> Code
Expand description

Returns the tonic Code of a StatusCode.