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

test.TestServerBuilder.start

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
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.

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.

Examples

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

0 declared, 0 inherited

Esc

Type to search.