Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

struct libtmux-rs latest

SessionTreeFields

Typed filter handles for SessionTree.

Source and package
Qualified name
libtmux::server::discovery::SessionTreeFields
Module
server.discovery
Package
libtmux
Source
crates/libtmux/src/server/discovery.rs
struct server.discovery.SessionTreeFields

Description#

The session's own fields sit under session, and windows is the relation that makes a question about a session's contents expressible.

Examples#

use libtmux::query::Filterable as _;
use libtmux::{SessionTree, WindowTree};
let sessions = SessionTree::filter_fields();
let windows = WindowTree::filter_fields();
// The session's own fields sit beside the relation rather than behind it, so
// a question about the session and a question about what it contains compose.
let building = sessions
.session
.session_name
.starts_with("build")
.and(sessions.windows.any(windows.window.window_name.eq("editor")));

Fields2#

SessionTreeFields fields
NameTypeDescription
windows ManyRelation<SessionTree, WindowTree> The windows under this session.
session SessionFields<SessionTree> The session's own fields, the same set Session filters on.
Esc

Type to search.

Reference previewOpen reference