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

limits.OutputLimits

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.OutputLimits
structoverload [source]
structoverload [source]
struct limits.OutputLimits

How many bytes one dispatch may read from each stream.

Exceeding a budget fails the dispatch with Error::OutputLimitExceeded rather than truncating, because a truncated tmux listing is a shorter listing: it decodes cleanly and says something false. A caller who wants the first N bytes of a pane asks tmux for them.

Examples

use libtmux::OutputLimits;
// The default is roomy enough for a pane with a very long history.
assert_eq!(OutputLimits::default().stdout_bytes(), 32 * 1024 * 1024);
// Tighten it where the caller knows the answer is small.
let limits = OutputLimits::default().max_stdout_bytes(64 * 1024);
assert_eq!(limits.stdout_bytes(), 64 * 1024);

6 declared, 0 inherited

Members

Esc

Type to search.