# client.Client.is_own

- **Module:** client.Client
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/client.rs#L146
- **Page:** https://libtmux.org/en/rs/latest/reference/client-client-is_own/

```
client.Client.is_own(self) -> bool
```

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::attach`] and 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.

`false` for every client once this process ends, since the answer is
about connections this `Server` is still holding open.

## Example

```rust
let others = server
    .clients()
    .await?
    .into_iter()
    .filter(|client| !client.is_own())
    .count();
```
