# test.TestServerBuilder.start

- **Module:** test.TestServerBuilder
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/test.rs#L441
- **Page:** https://libtmux.org/reference/rs/test-testserverbuilder-start/

```
test.TestServerBuilder.start(self) -> Result<TestServer, TestServerError>
```

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.

## Example

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