Searched refs:try_from (Results 1 – 13 of 13) sorted by relevance
| /tonic/tonic/src/metadata/ |
| H A D | value.rs | 255 fn try_from(src: &[u8]) -> Result<Self, Self::Error> { in try_from() method 291 fn try_from(src: &[u8; N]) -> Result<Self, Self::Error> { in try_from() method 292 Self::try_from(src.as_ref()) 310 fn try_from(src: Bytes) -> Result<Self, Self::Error> { in try_from() method 332 fn try_from(src: Vec<u8>) -> Result<Self, Self::Error> { in try_from() method 333 Self::try_from(src.as_slice()) in try_from() 347 fn try_from(s: &'a str) -> Result<Self, Self::Error> { in try_from() method 362 fn try_from(s: &'a String) -> Result<Self, Self::Error> { in try_from() method 377 fn try_from(s: String) -> Result<Self, Self::Error> { in try_from() method 465 Self::try_from(src).unwrap() in from_bytes() [all …]
|
| /tonic/tonic-types/src/richer_error/std_messages/ |
| H A D | retry_info.rs | 87 let duration = time::Duration::try_from(duration).unwrap_or(time::Duration::ZERO); in from() 102 let duration = match prost_types::Duration::try_from(duration) { in from()
|
| /tonic/tonic/src/transport/channel/ |
| H A D | endpoint.rs | 475 fn try_from(t: Bytes) -> Result<Self, Self::Error> { in try_from() method 483 fn try_from(t: String) -> Result<Self, Self::Error> { in try_from() method 491 fn try_from(t: &'static str) -> Result<Self, Self::Error> { in try_from() method 506 Self::try_from(s.to_string()) in from_str()
|
| /tonic/examples/src/uds/ |
| H A D | client.rs | 21 let channel = Endpoint::try_from("http://[::]:50051")? in main()
|
| /tonic/examples/src/mock/ |
| H A D | mock.rs | 34 let channel = Endpoint::try_from("http://[::]:50051")? in main()
|
| /tonic/tests/integration_tests/tests/ |
| H A D | http2_max_header_list_size.rs | 56 .http2_max_header_list_size(u32::try_from(N * 2).unwrap()) in test_http_max_header_list_size_and_long_errors()
|
| H A D | max_message_size.rs | 160 let channel = Endpoint::try_from("http://[::]:50051") in response_stream_limit() 326 let channel = Endpoint::try_from("http://[::]:50051") in max_message_run()
|
| H A D | connect_info.rs | 118 let channel = Endpoint::try_from("http://[::]:50051") in getting_connect_info()
|
| H A D | status.rs | 198 let channel = Endpoint::try_from("http://[::]:50051") in status_from_server_stream_with_source()
|
| /tonic/interop/src/bin/ |
| H A D | client.rs | 35 let mut endpoint = Endpoint::try_from(format!("{}://localhost:10000", scheme))? in main()
|
| /tonic/tonic/src/transport/channel/service/ |
| H A D | tls.rs | 99 domain: Arc::new(ServerName::try_from(domain)?.to_owned()), in new()
|
| /tonic/tests/compression/src/ |
| H A D | util.rs | 139 Endpoint::try_from("http://[::]:50051") in mock_io_channel()
|
| /tonic/tonic-web/src/ |
| H A D | call.rs | 436 let header_key = HeaderName::try_from(key) in decode_trailers_frame() 438 let header_value = HeaderValue::try_from(value) in decode_trailers_frame()
|