# server.Chooser

- **Module:** server
- **Package:** libtmux
- **Language:** Rust
- **Kind:** enum
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/server.rs#L2310
- **Page:** https://libtmux.org/en/rs/latest/reference/server-chooser/

One of tmux's interactive choosers.

Each opens a mode on a client and returns as soon as tmux accepts it; the
user's eventual choice is not reported back here.

## Example

```rust
use libtmux::Chooser;

// A chooser draws in an attached client's terminal, so this needs one; with
// no client tmux has nowhere to put it.
let client = server.clients().await?.into_iter().next();
server.choose(Chooser::Tree, client.as_ref()).await?;
```

## Members

- `Tree` (constant): Browse sessions, windows, and panes together.
- `Client` (constant): Browse attached clients.
- `Buffer` (constant): Browse paste buffers.
- `Customize` (constant): Customize options and key bindings.
