# pane.Pane.is_piped

- **Module:** pane.Pane
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/pane.rs#L371
- **Page:** https://libtmux.org/en/rs/latest/reference/pane-pane-is_piped/

```
pane.Pane.is_piped(self) -> bool
```

Report whether tmux is copying this pane's output to a command.

[`Self::pipe`] toggles when given no command, so a caller who lost track
of whether it is on cannot ask by calling it again -- that would turn it
off, or start a second one. This says which state the pane is in.

The value arrives with every pane listing already, so reading it costs
nothing beyond the listing a caller has done anyway.

## Example

```rust
let guard = libtmux::test::TestServer::new().await?;
let session = guard.server().new_session("piped").await?;
let mut pane = session.panes().await?.remove(0);

assert!(!pane.is_piped());

pane.pipe(Some("cat >/dev/null")).await?;
pane.refresh().await?;
assert!(pane.is_piped());

pane.pipe(None::<String>).await?;
pane.refresh().await?;
assert!(!pane.is_piped());
```
