Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

struct libtmux-rs latest

ControlClientLimits

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

Source and package
Qualified name
libtmux::limits::ControlClientLimits
Module
limits
Package
libtmux
Source
crates/libtmux/src/limits.rs
struct limits.ControlClientLimits

Description#

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

Examples#

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

Members4#

Collections and queries1#

  • clients method How many persistent clients may remain attached.

Other members3#

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

Type to search.

Reference previewOpen reference