# server.Server.bind_key

- **Module:** server.Server
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/server.rs#L852
- **Page:** https://libtmux.org/reference/rs/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.
