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

test.TestServer.shutdown

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

View as Markdown

Module
test
Declared in
TestServer
Package
libtmux
Source
crates/libtmux/src/test.rs
shutdown ( mut ) → Result<(), TestServerError>
method [source]
method [source]
shutdown

Stop the client executor and consume the daemon guard.

Errors

Returns ShutdownFailed when executor closure, lifecycle signaling/waiting, or the blocking waiter fails. Returns CleanupFailed when descriptor-relative cleanup cannot be proved after lifecycle processing.

This consumes the guard, closes its shared no-start executor, and then terminates the retained foreground daemon. Escaped Server clones cannot issue later commands.

Cancel safety

Nothing is left behind, on a best-effort basis: dropped early, the guard's own forced cleanup runs; dropped once cleanup has started, a blocking task finishes it. Either way a failure goes unreported.

Examples

let guard = libtmux::test::TestServer::new().await?;
guard.shutdown().await?;

0 declared, 0 inherited

Esc

Type to search.