Home
last modified time | relevance | path

Searched refs:try_from (Results 1 – 13 of 13) sorted by relevance

/tonic/tonic/src/metadata/
H A Dvalue.rs255 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 Dretry_info.rs87 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 Dendpoint.rs475 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 Dclient.rs21 let channel = Endpoint::try_from("http://[::]:50051")? in main()
/tonic/examples/src/mock/
H A Dmock.rs34 let channel = Endpoint::try_from("http://[::]:50051")? in main()
/tonic/tests/integration_tests/tests/
H A Dhttp2_max_header_list_size.rs56 .http2_max_header_list_size(u32::try_from(N * 2).unwrap()) in test_http_max_header_list_size_and_long_errors()
H A Dmax_message_size.rs160 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 Dconnect_info.rs118 let channel = Endpoint::try_from("http://[::]:50051") in getting_connect_info()
H A Dstatus.rs198 let channel = Endpoint::try_from("http://[::]:50051") in status_from_server_stream_with_source()
/tonic/interop/src/bin/
H A Dclient.rs35 let mut endpoint = Endpoint::try_from(format!("{}://localhost:10000", scheme))? in main()
/tonic/tonic/src/transport/channel/service/
H A Dtls.rs99 domain: Arc::new(ServerName::try_from(domain)?.to_owned()), in new()
/tonic/tests/compression/src/
H A Dutil.rs139 Endpoint::try_from("http://[::]:50051") in mock_io_channel()
/tonic/tonic-web/src/
H A Dcall.rs436 let header_key = HeaderName::try_from(key) in decode_trailers_frame()
438 let header_value = HeaderValue::try_from(value) in decode_trailers_frame()