Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

limits.ControlLimits

Rust
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
limits
Package
libtmux
Source
crates/libtmux/src/limits.rs
struct limits.ControlLimits
structoverload [source]
structoverload [source]
struct limits.ControlLimits

What one control-mode connection may accumulate before it gives up.

Control mode is a framed text protocol read from a process that keeps running, so the framing is the only thing bounding memory: a line that never ends, or a %begin block whose %end never arrives, otherwise grows until the machine notices. A subprocess dispatch at least ends when the process does.

Examples

use libtmux::ControlLimits;
let limits = ControlLimits::default().max_line_bytes(4096);
assert_eq!(limits.line_bytes(), 4096);

6 declared, 0 inherited

Members

  • block_bytes method The budget for one command's response block.
  • DEFAULT_BLOCK_BYTES constant 64 MiB for one %begin/%end block, which is a whole command's answer rather than one line.
  • DEFAULT_LINE_BYTES constant 8 MiB for one line. A pane printing a single enormous line is the realistic way to reach this, and it is well past anything a terminal displays.
  • line_bytes method The budget for a single protocol line.
  • max_block_bytes method Set the budget for one command's response block.
  • max_line_bytes method Set the budget for a single protocol line.
Esc

Type to search.