libtmux Reference MCP Search
On this page

server.Server.shutdown

View as Markdown

Module
server
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server.rs
shutdown ( self ) Result<(), Error>
method [source]
method [source]
shutdown

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

Esc

Type to search.