# command.CommandResult.into_streams

- **Module:** command.CommandResult
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/command.rs#L1082
- **Page:** https://libtmux.org/en/rs/latest/reference/command-commandresult-into_streams/

```
command.CommandResult.into_streams(self) -> (Vec<u8>, Vec<u8>)
```

Consume the result and return its exact stdout and stderr buffers.

## Example

```rust
let server = libtmux::Server::builder().socket_path("/tmp/libtmux-rs-test/result-streams.sock").build()?;
let result = server.cmd(libtmux::Command::new("list-sessions")).await?;
let (_stdout, _stderr) = result.into_streams();
server.shutdown().await?;
```
