Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Rust API

Rust documentation

server.Server.hierarchy

Rust
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
server
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 , 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.