Home
last modified time | relevance | path

Searched refs:time (Results 1 – 25 of 43) sorted by relevance

12

/tonic/examples/src/dynamic_load_balance/
H A Dclient.rs13 use tokio::time::timeout;
26 tokio::time::sleep(tokio::time::Duration::from_secs(5)).await; in main()
31 tokio::time::sleep(tokio::time::Duration::from_secs(5)).await; in main()
36 tokio::time::sleep(tokio::time::Duration::from_secs(5)).await; in main()
42 tokio::time::sleep(tokio::time::Duration::from_secs(5)).await; in main()
48 tokio::time::sleep(tokio::time::Duration::from_secs(5)).await; in main()
55 tokio::time::sleep(tokio::time::Duration::from_secs(5)).await; in main()
64 tokio::time::sleep(tokio::time::Duration::from_millis(500)).await; in main()
70 if let Ok(resp) = timeout(tokio::time::Duration::from_secs(10), rx).await { in main()
/tonic/tonic-types/src/richer_error/std_messages/
H A Dretry_info.rs1 use std::time;
20 pub retry_delay: Option<time::Duration>,
29 pub const MAX_RETRY_DELAY: time::Duration = time::Duration::new(315_576_000_000, 999_999_999);
34 pub fn new(retry_delay: Option<time::Duration>) -> Self { in new()
87 let duration = time::Duration::try_from(duration).unwrap_or(time::Duration::ZERO); in from()
120 use core::time::Duration;
/tonic/examples/src/routeguide/
H A Dclient.rs2 use std::time::Duration;
6 use tokio::time;
62 let start = time::Instant::now(); in run_route_chat()
65 let mut interval = time::interval(Duration::from_secs(1)); in run_route_chat()
68 let time = interval.tick().await; in run_route_chat() localVariable
69 let elapsed = time.duration_since(start); in run_route_chat()
/tonic/tests/integration_tests/tests/
H A Dconnection.rs3 use std::time::Duration;
55 tokio::time::sleep(Duration::from_millis(100)).await; in connect_returns_err_via_call_after_connected()
62 tokio::time::sleep(Duration::from_millis(100)).await; in connect_returns_err_via_call_after_connected()
105 tokio::time::sleep(Duration::from_millis(100)).await; in connect_lazy_reconnects_after_first_failure()
109 tokio::time::sleep(Duration::from_millis(100)).await; in connect_lazy_reconnects_after_first_failure()
H A Dhttp2_keep_alive.rs1 use std::time::Duration;
36 tokio::time::sleep(Duration::from_millis(100)).await; in http2_keepalive_does_not_cause_panics()
66 tokio::time::sleep(Duration::from_millis(100)).await; in http2_keepalive_does_not_cause_panics_on_client_side()
H A Duser_agent.rs2 use std::time::Duration;
39 tokio::time::sleep(Duration::from_millis(100)).await; in writes_user_agent_header()
H A Dinterceptor.rs2 use std::time::Duration;
54 tokio::time::sleep(Duration::from_millis(100)).await; in interceptor_retrieves_grpc_method()
H A Dhttp2_max_header_list_size.rs1 use std::time::Duration;
49 tokio::time::sleep(Duration::from_millis(100)).await; in test_http_max_header_list_size_and_long_errors()
H A Dclient_layer.rs3 use std::time::Duration;
58 tokio::time::sleep(Duration::from_millis(100)).await; in connect_supports_standard_tower_layers()
H A Dstatus.rs10 use std::time::Duration;
49 tokio::time::sleep(Duration::from_millis(100)).await; in status_with_details()
107 tokio::time::sleep(Duration::from_millis(100)).await; in status_with_metadata()
178 tokio::time::sleep(Duration::from_millis(100)).await; in status_from_server_stream()
248 tokio::time::sleep(Duration::from_millis(100)).await; in message_and_then_status_from_server_stream()
H A Dextensions.rs7 time::Duration,
54 tokio::time::sleep(Duration::from_millis(100)).await; in setting_extension_from_interceptor()
103 tokio::time::sleep(Duration::from_millis(100)).await; in setting_extension_from_tower()
H A Dtimeout.rs2 use std::{net::SocketAddr, time::Duration};
72 tokio::time::sleep(self.latency).await; in run_service_in_background()
H A Dorigin.rs6 use std::time::Duration;
47 tokio::time::sleep(Duration::from_millis(100)).await; in writes_origin_header()
H A Droutes_builder.rs1 use std::time::Duration;
72 tokio::time::sleep(Duration::from_millis(100)).await; in multiple_service_using_routes_builder()
H A Dconnect_info.rs2 use std::time::Duration;
43 tokio::time::sleep(Duration::from_millis(100)).await; in getting_connect_info()
/tonic/tonic/benches-disabled/
H A DREADME.md13 3) As we are not testing tonic-build compile time, the tests reference pre-compiled .rs files in 'b…
23 time: [2.7231 us 2.7588 us 2.7969 us]
26 time: [+16.073% +17.871% +19.980%] (p = 0.00 < 0.05)
/tonic/tonic-reflection/tests/
H A Dversions.rs82 tokio::time::sleep(std::time::Duration::from_millis(100)).await; in make_v1_request()
139 tokio::time::sleep(std::time::Duration::from_millis(100)).await; in make_v1alpha_request()
H A Dserver.rs118 tokio::time::sleep(std::time::Duration::from_millis(100)).await; in make_test_reflection_request()
/tonic/examples/src/health/
H A Dserver.rs5 use std::time::Duration;
36 tokio::time::sleep(Duration::from_secs(1)).await; in twiddle_service_status()
/tonic/examples/src/cancellation/
H A Dserver.rs10 use tokio::time::sleep;
11 use tokio::time::Duration;
H A Dclient.rs4 use tokio::time::{timeout, Duration};
/tonic/examples/src/streaming/
H A Dclient.rs5 use std::time::Duration;
72 tokio::time::sleep(Duration::from_secs(1)).await; //do not mess server println functions in main()
/tonic/interop/
H A DCargo.toml25 tokio = {version = "1.0", features = ["rt-multi-thread", "time", "macros"]}
/tonic/tonic/src/transport/service/
H A Dgrpc_timeout.rs8 time::Duration,
10 use tokio::time::Sleep;
60 sleep: timeout_duration.map(tokio::time::sleep), in call()
/tonic/interop/src/
H A Dserver.rs9 use std::time::Duration;
74 tokio::time::sleep(Duration::from_micros(param.interval_us as u64)).await; in streaming_output_call()
129 tokio::time::sleep(Duration::from_micros(param.interval_us as u64)).await; in full_duplex_call()

12