Snapshot
Every object read from one daemon incarnation.
Source and package
- Qualified name
-
Snapshot - Package
- libtmux-swift
- Source
- Sources/LibTmux/Snapshot.swift
-
Description#
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.
Members24#
Collections and queries17#
- panes(of:) method The panes of a window, in tmux's order.
- windows(of:) method The windows of a session, in tmux's order.
- sessions: let sessions: [Session] 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.
- sessions(_:ofPanes:) method Sessions whose panes satisfy a quantified filter.
- sessions(_:ofWindows:) method Sessions whose windows satisfy a quantified filter.
- sessions(of:) method Every session linking a window, in tmux's order.
- sessions(ofPanes:) method Sessions whose panes satisfy a quantified filter.
- sessions(ofWindows:) method Sessions whose windows satisfy a quantified filter.
- windows: let windows: [Window] property Every underlying window, on the same terms as
sessions. - windows(_:ofPanes:) method Windows whose panes satisfy a quantified filter.
- windows(inSession:) method Windows whose session matches.
- windows(ofPanes:) method Windows whose panes satisfy a quantified filter.
- panes: let panes: [Pane] property Every pane, on the same terms as
sessions. - panes(inSession:) method Panes whose session matches.
- panes(inWindow:) method Panes whose window matches — the to-one direction, where a quantifier would say nothing.
- clients: let clients: [Client] property Every attached client, on the same terms as
sessions. - clients(of:) method The clients attached to a session.
Other members7#
- incarnation: let incarnation: Server
Incarnation property The daemon the whole capture came from. - init(incarnation:sessions:windows:windowLinks:panes:clients:) method
- links(of:) method Every link to a window, including repeated links in one session.
- serverProcessID: var server
Process : Int propertyID - session(of:) method The session a client is attached to, if the snapshot still holds it.
- windowLinks: let window
Links : [WindowLink ] property Every session-local appearance of those windows. - windowLinks(of:) method The session-local window links of a session, in tmux's order.
Inherited members2 members#
Reached through Equatable.!=(_:_:), Decodable.init(from:).
- !=(_:_:) function inherited Returns a Boolean value indicating whether two values are not equal.
- init(from:) method inherited Creates a new instance by decoding from the given decoder.
Guides#
Pages that discuss Snapshot.