# server.Server.capabilities

- **Module:** server.Server
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/server.rs#L484
- **Page:** https://libtmux.org/reference/rs/server-server-capabilities/

```
server.Server.capabilities(self) -> Result<&EngineCapabilities, Error>
```

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.

## Example

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