# limits.ControlClientLimits

- **Module:** limits
- **Package:** libtmux
- **Language:** Rust
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/limits.rs#L178
- **Page:** https://libtmux.org/en/rs/latest/reference/limits-controlclientlimits/

How many persistent control-mode clients one server may hold.

Kept separate from [`DispatchLimits`]: a watcher may live for minutes,
while an ordinary command should still get a short-lived client process.

## Example

```rust
use libtmux::ControlClientLimits;

let limits = ControlClientLimits::default().max_clients(4);
assert_eq!(limits.clients(), 4);
```

## Members

- `DEFAULT_CLIENTS` (constant): How many persistent clients one server admits by default.
- `max_clients` (method): Set how many persistent clients may remain attached.
- `acquire_timeout` (method): Set how long a client waits for a place before reporting overload.
- `clients` (method): How many persistent clients may remain attached.
