# server.Server.key_bindings

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

```
server.Server.key_bindings(self, table: Option<&str>) -> Result<Vec<String>, Error>
```

List key bindings as tmux prints them.

Each line is a complete `bind-key` command in tmux's own quoting, which
this crate deliberately does not re-parse: the same value is rendered
bare, double quoted, or single quoted depending on content.

# Errors

Returns an error when tmux refuses the listing.
