# session.Session.panes

- **Module:** session.Session
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/session.rs#L467
- **Page:** https://libtmux.org/reference/rs/session-session-panes/

```
session.Session.panes(self) -> Result<Vec<Pane>, Error>
```

List every pane in this session, preserving any failure.

# Errors

Returns an error when the list command cannot run, or when its output
cannot be decoded into snapshots.
