io.github.libtmux.Server.Server.snapshot
- Module
- io.github.libtmux.Server
- Declared in
- Server
- Package
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/Server.java
- Other languages
- Python RubyLuaTypeScript Rust Go.NET C++ Swift
- snapshot ( ) ServerSnapshot
-
Captures the whole hierarchy in at most four listings, retrying once if the server is replaced.
One server-wide listing per kind of object, so ordering and membership stay tmux's decision rather than being re-derived from another listing's rows.
A failed read throws, including when no daemon is running. An empty graph means a live server successfully reported no sessions.
- Raises
-
-
ServerNotRunningException – if no daemon is running
-
LibTmuxException – if a listing otherwise fails or the listings cannot form one valid snapshot
-
In other ports Capture the whole hierarchy at one instant
- Python no equivalent on
Server - Ruby
LibTmux::Server#snapshot - Lua
libtmux.Server:snapshot - TypeScript
server.Server.snapshot - Rust no equivalent on
Server - Go
tmux.Server.Snapshot - .NET
LibTmux.Server.CaptureSnapshotAsync - C++ no equivalent on
Server - Swift
Server.snapshot()
0 declared, 0 inherited