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
-
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?;