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

client.Client.get

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

View as Markdown

Module
client
Declared in
Client
Package
libtmux
Source
crates/libtmux/src/client.rs
get ( self , field : F ) → Availability<F::Value<'_>>
method [source]
method [source]
get

Read one field of this client's snapshot, named by the handle that filters it.

Every field in ClientFields reads this way, including those with no getter of their own. Nothing is sent to tmux, so the value is as old as the snapshot. The result says why a field holds no value: see Availability .

Examples

use libtmux::Client;
use libtmux::query::Filterable as _;
let fields = Client::filter_fields();
for client in server.clients().await? {
// The key table a client is in: `prefix` right after the prefix key.
if let Some(table) = client.get(fields.client_key_table).available() {
println!("{client}: {}", table.to_string_lossy());
}
}

0 declared, 0 inherited

Esc

Type to search.