# window.navigation.Window.panes

- **Module:** window.navigation.Window
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/window/navigation.rs#L32
- **Page:** https://libtmux.org/reference/rs/window-navigation-window-panes/

```
window.navigation.Window.panes(self) -> Result<Vec<Pane>, Error>
```

List this window's panes, preserving any failure.

Panes are addressed by window id rather than by session and index, so
this returns the same panes through every link to the window.

# Errors

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