# session.Session.windows

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

```
session.Session.windows(self) -> Result<Vec<Window>, Error>
```

List the windows linked into this session, preserving any failure.

A window linked into other sessions appears here once, under this
session's own index for it.

# Errors

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