Home
last modified time | relevance | path

Searched defs:Error (Results 1 – 25 of 53) sorted by relevance

123

/tonic/tonic/src/transport/
H A Derror.rs6 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 Dservice.rs17 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 Dmod.rs79 ) -> 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 Dcommon.rs28 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 Ddecode.rs61 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 Dclient.rs17 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 Dprost.rs96 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 Dmod.rs129 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 Ddecode.rs46 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 DREADME.md163 ### 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 Dcomplex_tower_middleware.rs61 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 Dutils.rs4 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 Drouter.rs28 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 Drecover_error.rs58 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 Dconnection.rs106 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 Dadd_origin.rs36 type Error = crate::BoxError; typedef
39 fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_ready()
H A Duser_agent.rs34 type Error = T::Error; typedef
37 fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { in poll_ready()
H A Dconnector.rs41 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 Dutil.rs50 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 Dclient.rs51 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 Dvalue.rs252 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 Dclient.rs19 async fn say_hi(name: String) -> Result<(), Box<dyn std::error::Error>> { in say_hi()
/tonic/tonic/src/transport/channel/
H A Dendpoint.rs82 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 Dclient.rs62 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 Dbody.rs69 type Error = crate::Status; typedef
74 ) -> Poll<Option<Result<http_body::Frame<Self::Data>, Self::Error>>> { in poll_frame()

123