| /tonic/tonic/src/transport/ |
| H A D | error.rs | 6 pub struct Error { struct 7 inner: ErrorImpl, argument 24 impl Error { impl 61 impl fmt::Debug for Error { implementation 75 impl fmt::Display for Error { implementation 81 impl StdError for Error { implementation
|
| /tonic/tonic/src/client/ |
| H A D | service.rs | 17 type Error: Into<crate::BoxError>; typedef 24 fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>; in poll_ready() 40 type Error = T::Error; typedef 43 fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_ready()
|
| /tonic/tonic-reflection/src/server/ |
| H A D | mod.rs | 79 ) -> Result<v1::ServerReflectionServer<impl v1::ServerReflection>, Error> { in build_v1() argument 127 ) -> Result<Self, Error> { in new() argument 164 ) -> Result<(), Error> { in process_file() argument 196 ) -> Result<(), Error> { in process_message() argument 225 ) -> Result<(), Error> { in process_enum() argument 242 ) -> Result<(), Error> { in process_field() argument 285 ) -> Result<String, Error> { in extract_name() argument 303 pub enum Error { enum 310 impl From<DecodeError> for Error { implementation 316 impl std::error::Error for Error {} implementation [all …]
|
| /tonic/examples/src/json-codec/ |
| H A D | common.rs | 28 type Error = Status; typedef 30 fn encode(&mut self, item: Self::Item, buf: &mut EncodeBuf<'_>) -> Result<(), Self::Error> { in encode() 40 type Error = Status; typedef 42 fn decode(&mut self, buf: &mut DecodeBuf<'_>) -> Result<Option<Self::Item>, Self::Error> { in decode()
|
| /tonic/tonic/benches/ |
| H A D | decode.rs | 61 type Error = Status; typedef 66 ) -> Poll<Option<Result<Frame<Self::Data>, Self::Error>>> { in poll_frame() 85 fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error> { in fmt() argument 104 type Error = Status; typedef 106 fn decode(&mut self, buf: &mut DecodeBuf<'_>) -> Result<Option<Self::Item>, Self::Error> { in decode()
|
| /tonic/examples/src/routeguide/ |
| H A D | client.rs | 17 async fn print_features(client: &mut RouteGuideClient<Channel>) -> Result<(), Box<dyn Error>> { in print_features() 41 async fn run_record_route(client: &mut RouteGuideClient<Channel>) -> Result<(), Box<dyn Error>> { in run_record_route() 61 async fn run_route_chat(client: &mut RouteGuideClient<Channel>) -> Result<(), Box<dyn Error>> { in run_route_chat()
|
| /tonic/tonic/src/codec/ |
| H A D | prost.rs | 96 type Error = Status; typedef 98 fn encode(&mut self, item: Self::Item, buf: &mut EncodeBuf<'_>) -> Result<(), Self::Error> { in encode() 129 type Error = Status; typedef 131 fn decode(&mut self, buf: &mut DecodeBuf<'_>) -> Result<Option<Self::Item>, Self::Error> { in decode() 319 type Error = Status; typedef 321 fn encode(&mut self, item: Self::Item, buf: &mut EncodeBuf<'_>) -> Result<(), Self::Error> { in encode() 336 type Error = Status; typedef 338 fn decode(&mut self, buf: &mut DecodeBuf<'_>) -> Result<Option<Self::Item>, Self::Error> { in decode() 381 type Error = Status; typedef 386 ) -> Poll<Option<Result<Frame<Self::Data>, Self::Error>>> { in poll_frame()
|
| H A D | mod.rs | 129 type Error: From<io::Error>; typedef 132 fn encode(&mut self, item: Self::Item, dst: &mut EncodeBuf<'_>) -> Result<(), Self::Error>; in encode() 146 type Error: From<io::Error>; typedef 153 fn decode(&mut self, src: &mut DecodeBuf<'_>) -> Result<Option<Self::Item>, Self::Error>; in decode()
|
| H A D | decode.rs | 46 Error(Option<Status>), enumerator 68 B::Error: Into<crate::BoxError>, in new_response() argument 84 B::Error: Into<crate::BoxError>, in new_empty() argument 100 B::Error: Into<crate::BoxError>, in new_request() argument 121 B::Error: Into<crate::BoxError>, in new() argument
|
| /tonic/examples/ |
| H A D | README.md | 163 ### Client using the `ErrorDetails` struct 169 ### Client using a vector of error message types 175 ### Server using the `ErrorDetails` struct 181 ### Server using a vector of error message types
|
| /tonic/tests/integration_tests/tests/ |
| H A D | complex_tower_middleware.rs | 61 type Error = BoxError; typedef 64 fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_ready() 98 type Error = BoxError; typedef 103 ) -> Poll<Option<Result<http_body::Frame<Self::Data>, Self::Error>>> { in poll_frame()
|
| /tonic/tonic/benches-disabled/benchmarks/ |
| H A D | utils.rs | 4 pub fn generate_rnd_string(string_size: usize) -> Result<String, Box<dyn std::error::Error>> { in generate_rnd_string()
|
| /tonic/tonic/src/service/ |
| H A D | router.rs | 28 S: Service<Request<Body>, Error = Infallible> in add_service() argument 60 S: Service<Request<Body>, Error = Infallible> in new() argument 80 S: Service<Request<Body>, Error = Infallible> in add_service() argument 149 type Error = crate::BoxError; typedef 153 fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_ready()
|
| H A D | recover_error.rs | 58 type Error = crate::BoxError; typedef 61 fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_ready() 138 type Error = B::Error; typedef 143 ) -> Poll<Option<Result<http_body::Frame<Self::Data>, Self::Error>>> { in poll_frame()
|
| /tonic/tonic/src/transport/channel/service/ |
| H A D | connection.rs | 106 type Error = crate::BoxError; typedef 109 fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_ready() 144 type Error = crate::BoxError; typedef 147 fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_ready() 182 type Error = crate::BoxError; typedef 185 fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_ready()
|
| H A D | add_origin.rs | 36 type Error = crate::BoxError; typedef 39 fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_ready()
|
| H A D | user_agent.rs | 34 type Error = T::Error; typedef 37 fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_ready()
|
| H A D | connector.rs | 41 type Error = ConnectError; typedef 44 fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_ready()
|
| /tonic/tests/compression/src/ |
| H A D | util.rs | 50 type Error = B::Error; typedef 55 ) -> Poll<Option<Result<Frame<Self::Data>, Self::Error>>> { in poll_frame() 103 type Error = tonic::Status; typedef 108 ) -> Poll<Option<Result<Frame<Self::Data>, Self::Error>>> { in poll_frame()
|
| /tonic/examples/src/h2c/ |
| H A D | client.rs | 51 type Error = hyper::Error; typedef 55 fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_ready()
|
| /tonic/tonic/src/metadata/ |
| H A D | value.rs | 252 type Error = InvalidMetadataValueBytes; typedef 255 fn try_from(src: &[u8]) -> Result<Self, Self::Error> { in try_from() argument 288 type Error = InvalidMetadataValueBytes; typedef 307 type Error = InvalidMetadataValueBytes; typedef 310 fn try_from(src: Bytes) -> Result<Self, Self::Error> { in try_from() argument 329 type Error = InvalidMetadataValueBytes; typedef 344 type Error = InvalidMetadataValue; typedef 347 fn try_from(s: &'a str) -> Result<Self, Self::Error> { in try_from() argument 359 type Error = InvalidMetadataValue; typedef 374 type Error = InvalidMetadataValue; typedef [all …]
|
| /tonic/examples/src/tracing/ |
| H A D | client.rs | 19 async fn say_hi(name: String) -> Result<(), Box<dyn std::error::Error>> { in say_hi()
|
| /tonic/tonic/src/transport/channel/ |
| H A D | endpoint.rs | 82 pub fn from_shared(s: impl Into<Bytes>) -> Result<Self, Error> { in from_shared() argument 249 pub fn tls_config(self, tls_config: ClientTlsConfig) -> Result<Self, Error> { in tls_config() argument 350 pub async fn connect(&self) -> Result<Channel, Error> { in connect() argument 473 type Error = Error; typedef 475 fn try_from(t: Bytes) -> Result<Self, Self::Error> { in try_from() argument 481 type Error = Error; typedef 483 fn try_from(t: String) -> Result<Self, Self::Error> { in try_from() argument 489 type Error = Error; typedef 491 fn try_from(t: &'static str) -> Result<Self, Self::Error> { in try_from() argument
|
| /tonic/examples/src/tower/ |
| H A D | client.rs | 62 type Error = Box<dyn std::error::Error + Send + Sync>; typedef 66 fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_ready()
|
| /tonic/tonic/src/ |
| H A D | body.rs | 69 type Error = crate::Status; typedef 74 ) -> Poll<Option<Result<http_body::Frame<Self::Data>, Self::Error>>> { in poll_frame()
|