On this page
server.Server.shutdown
- Module
- server
- Declared in
- Server
- Package
- libtmux
- Source
- crates/libtmux/src/server.rs
-
Stop accepting clients and wait for every active client process.
Shutdown is idempotent and affects every clone of this server. It never stops the tmux daemon itself. Await it before dropping the Tokio runtime when deterministic reaping matters. With control mode enabled, this also closes persistent control connections.
Errors
Propagates failures reported by the shared executor shutdown boundary.
Examples
let server = libtmux::Server::new()?; server.shutdown().await?; server.shutdown().await?;
0 declared, 0 inherited