// Copied from tonic, where it's private.
Copied from tonic, where it's private.
Copied from tonic where it ' s private .
fn code_header(code: tonic::Code) -> HeaderValue {
    use tonic::Code;
    match code {
        Code::Ok => HeaderValue::from_static("0"),
        Code::Cancelled => HeaderValue::from_static("1"),
        Code::Unknown => HeaderValue::from_static("2"),
        Code::InvalidArgument => HeaderValue::from_static("3"),
        Code::DeadlineExceeded => HeaderValue::from_static("4"),
        Code::NotFound => HeaderValue::from_static("5"),
        Code::AlreadyExists => HeaderValue::from_static("6"),
        Code::PermissionDenied => HeaderValue::from_static("7"),
        Code::ResourceExhausted => HeaderValue::from_static("8"),
        Code::FailedPrecondition => HeaderValue::from_static("9"),
        Code::Aborted => HeaderValue::from_static("10"),
        Code::OutOfRange => HeaderValue::from_static("11"),
        Code::Unimplemented => HeaderValue::from_static("12"),
        Code::Internal => HeaderValue::from_static("13"),
        Code::Unavailable => HeaderValue::from_static("14"),
        Code::DataLoss => HeaderValue::from_static("15"),
        Code::Unauthenticated => HeaderValue::from_static("16"),
    }
}
fn code_header ( code : tonic :: Code ) -> HeaderValue { use tonic :: Code ; match code { Code :: Ok => HeaderValue :: from_static ( " " ) , Code :: Cancelled => HeaderValue :: from_static ( " " ) , Code :: Unknown => HeaderValue :: from_static ( " " ) , Code :: InvalidArgument => HeaderValue :: from_static ( " " ) , Code :: DeadlineExceeded => HeaderValue :: from_static ( " " ) , Code :: NotFound => HeaderValue :: from_static ( " " ) , Code :: AlreadyExists => HeaderValue :: from_static ( " " ) , Code :: PermissionDenied => HeaderValue :: from_static ( " " ) , Code :: ResourceExhausted => HeaderValue :: from_static ( " " ) , Code :: FailedPrecondition => HeaderValue :: from_static ( " " ) , Code :: Aborted => HeaderValue :: from_static ( " " ) , Code :: OutOfRange => HeaderValue :: from_static ( " " ) , Code :: Unimplemented => HeaderValue :: from_static ( " " ) , Code :: Internal => HeaderValue :: from_static ( " " ) , Code :: Unavailable => HeaderValue :: from_static ( " " ) , Code :: DataLoss => HeaderValue :: from_static ( " " ) , Code :: Unauthenticated => HeaderValue :: from_static ( " " ) , } }
Copied from tonic, where it's private.
Copied from tonic where it ' s private .
code
tonic::Code