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

test.TestServer

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

View as Markdown

Module
test
Package
libtmux
Source
crates/libtmux/src/test.rs
struct test.TestServer
structoverload [source]
structoverload [source]
struct test.TestServer

One isolated tmux daemon and its descriptor-relative cleanup guard.

This value owns its foreground daemon and socket-directory lifecycle and holds a no-start Server handle. The daemon uses a private explicit socket and an owned empty config, creating no initial session. Escaped Server clones share that handle's executor. TestServer::shutdown closes the shared executor and reports graceful lifecycle and cleanup failures; Drop performs synchronous forced best-effort daemon and file cleanup whose failures cannot be observed.

Discussed in Rust workspace builder examples

8 declared, 0 inherited

Members

  • builder method Start a consuming isolated test-server builder.
  • daemon_pid method Return the retained foreground daemon PID.
  • daemon_state method Report whether the daemon is still running, and how it ended if not.
  • new method Start an isolated tmux server with the default builder settings.
  • server method Return the no-start client handle for this isolated daemon.
  • session method Create a session on this fixture's server.
  • shutdown method Stop the client executor and consume the daemon guard.
  • socket_path method Return this guard's explicit Unix socket path.
Esc

Type to search.