limits.ControlLimits
Rust
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- limits
- Package
- libtmux
- Source
- crates/libtmux/src/limits.rs
-
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
%beginblock whose%endnever 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/%endblock, 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.