test.TestServer
Rust
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- test
- Package
- libtmux
- Source
- crates/libtmux/src/test.rs
-
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
Serverhandle. The daemon uses a private explicit socket and an owned empty config, creating no initial session. EscapedServerclones share that handle's executor.TestServer::shutdowncloses the shared executor and reports graceful lifecycle and cleanup failures;Dropperforms 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.