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

server.builder.ServerBuilder.default_timeout

Rust
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
server.builder
Declared in
ServerBuilder
Package
libtmux
Source
crates/libtmux/src/server/builder.rs
default_timeout ( mut , timeout : Duration ) → Self
method [source]
method [source]
default_timeout

Set the per-command dispatch deadline.

The deadline includes waiting for dispatch capacity and running the tmux process.

A duration too large for the platform's monotonic clock is treated as unbounded while command cancellation remains available.

Examples

let timeout = std::time::Duration::from_secs(4);
let server = libtmux::Server::builder().default_timeout(timeout).build()?;
assert_eq!(server.default_timeout(), timeout);

0 declared, 0 inherited

Esc

Type to search.