Home
last modified time | relevance | path

Searched defs:Code (Results 1 – 4 of 4) sorted by relevance

/tonic/tonic/src/
H A Dstatus.rs59 pub enum Code { enum
112 impl Code { impl
152 impl std::fmt::Display for Code { implementation
162 pub fn new(code: Code, message: impl Into<String>) -> Status { in new()
370 fn code_from_h2(err: &h2::Error) -> Code { in code_from_h2()
486 pub fn code(&self) -> Code { in code()
557 code: Code, in with_details_and_metadata()
778 impl Code { implementation
782 pub fn from_i32(i: i32) -> Code { in from_i32()
789 pub fn from_bytes(bytes: &[u8]) -> Code { in from_bytes()
[all …]
/tonic/tonic-types/src/richer_error/
H A Dmod.rs37 fn gen_details_bytes(code: Code, message: &str, details: Vec<Any>) -> Bytes { in gen_details_bytes()
73 code: Code, in with_error_details_and_metadata()
95 code: Code, in with_error_details()
119 code: Code, in with_error_details_vec_and_metadata()
143 code: Code, in with_error_details_vec()
485 code: Code, in with_error_details_and_metadata()
539 fn with_error_details(code: Code, message: impl Into<String>, details: ErrorDetails) -> Self { in with_error_details()
544 code: Code, in with_error_details_vec_and_metadata()
594 code: Code, in with_error_details_vec()
/tonic/tests/web/tests/
H A Dgrpc.rs163 fn status(s: &tonic::Status) -> (String, tonic::Code) { in status()
/tonic/tonic-health/src/
H A Dserver.rs200 fn assert_grpc_status(wire: Option<Status>, expected: Code) { in assert_grpc_status()