libtmux Reference MCP Search
On this page

command.CommandResult.stderr_utf8

View as Markdown

Module
command
Declared in
CommandResult
Package
libtmux
Source
crates/libtmux/src/command.rs
stderr_utf8 ( self ) Result<&str, std::str::Utf8Error>
method [source]
method [source]
stderr_utf8

Borrow stderr as UTF-8 without copying or replacement.

Errors

Returns the borrowed decoding error when stderr is not valid UTF-8.

Examples

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

0 declared, 0 inherited

Esc

Type to search.