client.Client.get
Rust
- Python Unavailable
- TypeScript Unavailable
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- client
- Declared in
- Client
- Package
- libtmux
- Source
- crates/libtmux/src/client.rs
- get ( self , field : F ) Availability<F::Value<'_>>
-
Read one field of this client's snapshot, named by the handle that filters it.
Every field in
ClientFieldsreads 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: seeAvailability.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