# server.Server.bind_key

- **Module:** server.Server
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/server.rs#L1084
- **Page:** https://libtmux.org/en/rs/latest/reference/server-server-bind_key/

```
server.Server.bind_key(self, table: &str, key: &str, command: impl Into<OsString>) -> Result<(), Error>
```

Bind a key in one key table.

# Errors

Returns an error when tmux rejects the key or the command.
