Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Rust API

Rust documentation

server.Server.shutdown

Rust
  • Python Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

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.