Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-rs latest

Server.capabilities

Detect and share capabilities for the configured tmux executable.

Source and package
Qualified name
libtmux::server::Server::capabilities
Module
server
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server.rs
pub async fn capabilities(&self) -> Result< &EngineCapabilities, Error >

Description#

Failed initialization is not cached and may be retried. This diagnostic also describes executables below the supported daemon minimum.

Errors

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

Examples#

let server = libtmux::Server::builder()
.socket_path("/tmp/libtmux-rs-test/capabilities-example-absent.sock")
.build()?;
assert!(!server.capabilities().await?.tmux_version().raw().is_empty());
server.shutdown().await?;
Esc

Type to search.

Reference previewOpen reference