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.

Rust API

constant libtmux-rs latest

Error.CommandFailed

tmux rejected a command that the crate requires to succeed.

Source and package
Qualified name
libtmux::error::Error::CommandFailed
Module
error
Declared in
Error
Package
libtmux
Source
crates/libtmux/src/error.rs
CommandFailed { command: &'static str, exit_code: Option<i32>, stderr: String, }

Description#

The raw crate::Server::cmd() boundary keeps a nonzero status as data. This variant is for operations whose whole purpose is the effect, so a refusal is a failure rather than a result.

Fields3#

CommandFailed fields
NameTypeDescription
command &'static str The tmux command that was rejected.
exit_code Option<i32> The process exit code, when it exited normally.
stderr String The message tmux printed, or a fixed explanation when retaining it could disclose sensitive input.
Esc

Type to search.

Reference previewOpen reference