MCPcopy Create free account
hub / github.com/actix/examples / register

Method register

shutdown-server/src/main.rs:56–58  ·  view source on GitHub ↗

Sets the server handle to stop.

(&self, handle: ServerHandle)

Source from the content-addressed store, hash-verified

54impl StopHandle {
55 /// Sets the server handle to stop.
56 pub(crate) fn register(&self, handle: ServerHandle) {
57 *self.inner.lock() = Some(handle);
58 }
59
60 /// Sends stop signal through contained server handle.
61 pub(crate) fn stop(&self, graceful: bool) {

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected