client.Client.is_own
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
-
Report whether this process opened this client itself.
tmux counts a control connection as an attached client, and this crate opens them:
crate::Pane::stream_output,crate::control::ControlMode::attachand the waits built on them all show up in a client listing beside a human's terminal. A caller asking "is anybody watching this session" means anybody *else*, so this is the question to ask before counting.falsefor every client once this process ends, since the answer is about connections thisServeris still holding open.Examples
let others = server.clients().await?.into_iter().filter(|client| !client.is_own()).count();
0 declared, 0 inherited