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

Return whether the process exited successfully.

Source and package
Qualified name
libtmux::command::CommandResult::success
Module
command
Declared in
CommandResult
Package
libtmux
Source
crates/libtmux/src/command.rs
#[must_use] pub const fn success(&self) -> bool

Examples#

let server = libtmux::Server::builder().socket_path("/tmp/libtmux-rs-test/result-success.sock").build()?;
let result = server.cmd(libtmux::Command::new("list-sessions")).await?;
let _success = result.success();
server.shutdown().await?;

Guides#

Pages that discuss success.

Esc

Type to search.

Reference previewOpen reference