# client.Client.get

- **Module:** client.Client
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/client.rs#L537
- **Page:** https://libtmux.org/en/rs/latest/reference/client-client-get/

```
client.Client.get(self, field: F) -> Availability<F::Value<'_>>
```

Read one field of this client's snapshot, named by the handle that filters it.

Every field in [`ClientFields`] reads this way, including those with no
getter of their own. Nothing is sent to tmux, so the value is as old as
the snapshot. The result says why a field holds no value: see
[`Availability`].

## Example

```rust
use libtmux::Client;
use libtmux::query::Filterable as _;

let fields = Client::filter_fields();
for client in server.clients().await? {
    // The key table a client is in: `prefix` right after the prefix key.
    if let Some(table) = client.get(fields.client_key_table).available() {
        println!("{client}: {}", table.to_string_lossy());
    }
}
```
