# Snapshot

- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/Snapshot.swift#L5
- **Page:** https://libtmux.org/reference/swift/snapshot/

Every object read from one daemon incarnation.

A snapshot spans several tmux commands. It rejects a daemon replacement
during capture, but another client can still mutate one daemon between its
listings; this is a bounded aggregate, not a tmux transaction.

## Members

- `!=(_:_:)` (function) — Returns a Boolean value indicating whether two values are not equal.
- `incarnation` (property) — The daemon the whole capture came from.
- `serverProcessID` (property)
- `sessions` (property) — Every session that existed when the capture ran, in tmux's own order. These are values: walking them cannot reach tmux again, so a relation resolved here is resolved for good.
- `windows` (property) — Every underlying window, on the same terms as ``sessions``.
- `windowLinks` (property) — Every session-local appearance of those windows.
- `panes` (property) — Every pane, on the same terms as ``sessions``.
- `clients` (property) — Every attached client, on the same terms as ``sessions``.
- `init(incarnation:sessions:windows:windowLinks:panes:clients:)` (method)
- `init(from:)` (method) — Creates a new instance by decoding from the given decoder.
- `windows(of:)` (method) — The windows of a session, in tmux's order.
- `windowLinks(of:)` (method) — The session-local window links of a session, in tmux's order.
- `links(of:)` (method) — Every link to a window, including repeated links in one session.
- `panes(of:)` (method) — The panes of a window, in tmux's order.
- `sessions(of:)` (method) — Every session linking a window, in tmux's order.
- `session(of:)` (method) — The session a client is attached to, if the snapshot still holds it.
- `clients(of:)` (method) — The clients attached to a session.
- `sessions(_:ofPanes:)` (method) — Sessions whose panes satisfy a quantified filter.
- `sessions(_:ofWindows:)` (method) — Sessions whose windows satisfy a quantified filter.
- `windows(_:ofPanes:)` (method) — Windows whose panes satisfy a quantified filter.
- `panes(inWindow:)` (method) — Panes whose window matches — the to-one direction, where a quantifier would say nothing.
- `panes(inSession:)` (method) — Panes whose session matches.
- `windows(inSession:)` (method) — Windows whose session matches.
- `sessions(ofPanes:)` (method) — Sessions whose panes satisfy a quantified filter.
- `sessions(ofWindows:)` (method) — Sessions whose windows satisfy a quantified filter.
- `windows(ofPanes:)` (method) — Windows whose panes satisfy a quantified filter.
