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

WindowTreeFields

Typed filter handles for WindowTree.

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

Examples#

use libtmux::query::Filterable as _;
use libtmux::{Pane, WindowTree};
let windows = WindowTree::filter_fields();
let panes = Pane::filter_fields();
// `any` asks whether some pane matches, which is not the same question as
// filtering the panes themselves: this keeps whole windows.
let has_dead_pane = windows.panes.any(panes.pane_dead.eq(true));

Fields2#

WindowTreeFields fields
NameTypeDescription
panes ManyRelation<WindowTree, Pane> The panes in this window.
window WindowFields<WindowTree> The window's own fields, the same set Window filters on.
Esc

Type to search.

Reference previewOpen reference