# server.discovery.Server.panes

- **Module:** server.discovery.Server
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/server/discovery.rs#L106
- **Page:** https://libtmux.org/reference/rs/server-discovery-server-panes/

```
server.discovery.Server.panes(self) -> Result<Vec<Pane>, Error>
```

List every pane on the server, preserving any failure.

# Errors

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