# test.TestServerBuilder.start

- **Module:** test.TestServerBuilder
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/test.rs#L460
- **Page:** https://libtmux.org/en/rs/latest/reference/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.

# Cancel safety

Nothing is left behind, on a best-effort basis: a start dropped before
it returns the guard forces its daemon down and removes its files at
once, and a failure doing so goes unreported.

## Example

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