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

CommandResult.refusal_for

Classify a nonzero status as a refusal for a named operation.

Source and package
Qualified name
libtmux::command::CommandResult::refusal_for
Module
command
Declared in
CommandResult
Package
libtmux
Source
crates/libtmux/src/command.rs
#[must_use] pub fn refusal_for( &self, operation: &'static str ) -> Option<crate::Error>

Description#

Use a fixed operation name without targets or argument values. The result keeps no original target, so classification uses only what tmux echoed in stderr. Sensitive command output is withheld from the returned error.

Returns None when the command succeeded.

Parameters
Esc

Type to search.

Reference previewOpen reference