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

Rust API

Rust documentation

server.Server.capabilities

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

View as Markdown

Module
server
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server.rs
capabilities ( self ) → Result<&EngineCapabilities, Error>
method [source]
method [source]
capabilities

Detect and share capabilities for the configured tmux executable.

Failed initialization is not cached and may be retried.

Errors

Returns an error when the executable cannot be run, its version probe fails, its output is invalid, or the detected version is unsupported.

Examples

let server = libtmux::Server::new()?;
assert!(!server.capabilities().await?.tmux_version().raw().is_empty());
server.shutdown().await?;

0 declared, 0 inherited

Esc

Type to search.