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.send

Send one command and wait for its result block.

Source and package
Qualified name
libtmux::control::ControlMode::send
Module
control
Declared in
ControlMode
Package
libtmux
Source
crates/libtmux/src/control.rs
pub async fn send(&self, command: Command) -> Result< BlockResult, Error >

Description#

Errors

Returns an error when the command cannot be written as a control-mode line, the connection has closed, or its deadline elapses while queued, being written, or awaiting a response.

Cancel safety

As for ControlSender::send(): a command dropped while queued is never written, and one already committed may run.

Parameters
Esc

Type to search.

Reference previewOpen reference