# server.discovery.Server.windows

- **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#L77
- **Page:** https://libtmux.org/reference/rs/server-discovery-server-windows/

```
server.discovery.Server.windows(self) -> Result<Vec<Window>, Error>
```

List every window 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.
