CommandResult.stdout_utf8
Borrow stdout as UTF-8 without copying or replacement.
Source and package
- Qualified name
-
libtmux::command:: Command Result:: stdout _utf8 - Module
- command
- Declared in
CommandResult- Package
- libtmux
- Source
- crates/libtmux/src/command.rs
-
Examples#
let server = libtmux::Server::builder().socket_path("/tmp/libtmux-rs-test/result-stdout-utf8.sock").build()?;let result = server.cmd(libtmux::Command::new("list-sessions")).await?;let _text = result.stdout_utf8()?;server.shutdown().await?;