libtmux Reference MCP Search
On this page

test.TestServerBuilder.start

View as Markdown

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

Start the isolated foreground tmux daemon.

Errors

Returns a source-less test-support error when setup, startup, readiness, or rollback cleanup cannot be completed safely.

Startup creates a private explicit socket and owned empty config without creating an initial session. Cancelling this future before ownership transfers to the returned guard triggers synchronous forced best-effort rollback, whose cleanup failures cannot be reported to the cancelled caller.

Examples

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

0 declared, 0 inherited

Esc

Type to search.