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.

method libtmux-rs latest

ControlMode.attach_with_limits

Attach with explicit frame budgets.

Source and package
Qualified name
libtmux::control::ControlMode::attach_with_limits
Module
control
Declared in
ControlMode
Package
libtmux
Source
crates/libtmux/src/control.rs
pub async fn attach_with_limits( server: &Server, session: &SessionId, limits: ControlLimits, ) -> Result<Self, Error>

Description#

Control mode reads from a process that keeps running, so the framing is the only thing bounding memory: a line that never ends, or a block whose %end never arrives, otherwise grows until the machine notices.

Errors

Returns an error when the connection cannot be opened, as Self::attach() does. Server::shutdown() cancels an attach in progress and refuses later attempts.

Cancel safety

Nothing is left held, as for Self::attach().

tmux command#

The tmux commands behind attach_with_limits.

tmux C API#

The C declarations in tmux that implement these commands.

Esc

Type to search.

Reference previewOpen reference