Home
last modified time | relevance | path

Searched refs:watch (Results 1 – 5 of 5) sorted by relevance

/tonic/tonic-health/src/
H A Dserver.rs9 use tokio::sync::{watch, RwLock};
29 type StatusPair = (watch::Sender<ServingStatus>, watch::Receiver<ServingStatus>);
42 let server_status = ("".to_string(), watch::channel(ServingStatus::Serving)); in new()
88 writer.insert(service_name.to_string(), watch::channel(status)); in set_service_status()
133 async fn watch( in watch() method
153 fn new(status_rx: watch::Receiver<ServingStatus>) -> Self { in new()
191 use tokio::sync::watch;
213 watch::channel(ServingStatus::Unknown), in make_test_service()
274 .watch(Request::new(HealthCheckRequest { in test_service_watch()
289 .watch(Request::new(HealthCheckRequest { in test_service_watch()
[all …]
/tonic/examples/
H A DREADME.md140 systemfd --no-pid -s http::[::1]:50051 -- cargo watch -x 'run --bin autoreload-server'
155 * [cargo-watch](https://crates.io/crates/cargo-watch)
/tonic/tonic-health/src/generated/
H A Dgrpc_health_v1.rs179 pub async fn watch( in watch() function
248 async fn watch( in watch() method
393 <T as Health>::watch(&inner, request).await in call()
/tonic/tonic-health/proto/
H A Dhealth.proto47 // Performs a watch for the serving status of the requested service.
/tonic/tonic/src/transport/server/
H A Dmod.rs705 let (signal_tx, signal_rx) = tokio::sync::watch::channel(()); in serve_internal()
771 mut watcher: Option<tokio::sync::watch::Receiver<()>>, in serve_connection()