libtmux Reference MCP Search
On this page

server.discovery.Server.hierarchy

View as Markdown

Module
server.discovery
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server/discovery.rs
hierarchy ( self ) Result<Vec<SessionTree>, Error>
method [source]
method [source]
hierarchy

Fetch the whole hierarchy in three commands.

Walking down with Server::sessions_or_empty , then each session's windows, then each window's panes costs one command per object. tmux can answer the same question with list-sessions, list-windows -a, and list-panes -a, so this issues three regardless of how much is running and stitches the result by winlink.

Use it when you want everything. Use the scoped accessors when you want one branch: they fetch less.

The three listings are separate tmux commands, so this is not an atomic capture. A window created between them appears in one listing and not another, and is dropped rather than reported half-formed.

Errors

Returns an error when any of the three listings fails.

0 declared, 0 inherited

Esc

Type to search.