Searched refs:duration (Results 1 – 8 of 8) sorted by relevance
| /tonic/tonic-types/src/richer_error/std_messages/ |
| H A D | retry_info.rs | 85 Some(duration) => { in from() 87 let duration = time::Duration::try_from(duration).unwrap_or(time::Duration::ZERO); in from() localVariable 88 Some(duration) in from() 100 Some(duration) => { in from() 102 let duration = match prost_types::Duration::try_from(duration) { in from() localVariable 103 Ok(duration) => duration, in from() 109 Some(duration) in from()
|
| /tonic/tonic/src/ |
| H A D | request.rs | 397 fn duration_to_grpc_timeout(duration: Duration) -> String { in duration_to_grpc_timeout() 399 duration: Duration, in duration_to_grpc_timeout() 407 let value = convert(duration).into(); in duration_to_grpc_timeout() 416 try_format(duration, 'n', |d| d.as_nanos()) in duration_to_grpc_timeout() 417 .or_else(|| try_format(duration, 'u', |d| d.as_micros())) in duration_to_grpc_timeout() 418 .or_else(|| try_format(duration, 'm', |d| d.as_millis())) in duration_to_grpc_timeout() 419 .or_else(|| try_format(duration, 'S', |d| d.as_secs())) in duration_to_grpc_timeout() 420 .or_else(|| try_format(duration, 'M', |d| d.as_secs() / 60)) in duration_to_grpc_timeout() 422 try_format(duration, 'H', |d| { in duration_to_grpc_timeout()
|
| /tonic/tests/wellknown-compiled/proto/ |
| H A D | google.proto | 8 import "google/protobuf/duration.proto";
|
| /tonic/tonic/src/transport/channel/ |
| H A D | endpoint.rs | 207 pub fn rate_limit(self, limit: u64, duration: Duration) -> Self { in rate_limit() 209 rate_limit: Some((limit, duration)), in rate_limit() 277 pub fn keep_alive_timeout(self, duration: Duration) -> Self { in keep_alive_timeout() 279 http2_keep_alive_timeout: Some(duration), in keep_alive_timeout()
|
| /tonic/tonic/src/transport/service/ |
| H A D | grpc_timeout.rs | 129 let duration = match timeout_unit { in try_parse_grpc_timeout() localVariable 145 Ok(Some(duration)) in try_parse_grpc_timeout()
|
| /tonic/examples/proto/routeguide/ |
| H A D | route_guide.proto | 108 // The duration of the traversal in seconds.
|
| /tonic/tonic-types/proto/ |
| H A D | error_details.proto | 19 import "google/protobuf/duration.proto";
|
| /tonic/examples/proto/googleapis/google/pubsub/v1/ |
| H A D | pubsub.proto | 23 import "google/protobuf/duration.proto"; 803 // Specifies the "time-to-live" duration for an associated resource. The
|