# client.Client.attached_pane

- **Module:** client.Client
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/client.rs#L378
- **Page:** https://libtmux.org/reference/rs/client-client-attached_pane/

```
client.Client.attached_pane(self) -> Result<Option<crate::Pane>, Error>
```

The active pane of the current window of this client's session.

Shares the caveat on [`Self::attached_window`], and adds one: this is
the window's active pane, not a per-client focus, because tmux does
not keep one. Two clients on the same session always report the same
pane.

`None` when the client is attached to nothing.

# Errors

Returns an error when tmux cannot be reached, or answers with an ID
this crate cannot parse.
