# pane.PaneWait

- **Module:** pane
- **Package:** libtmux
- **Language:** Rust
- **Kind:** enum
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/pane.rs#L1396
- **Page:** https://libtmux.org/en/rs/latest/reference/pane-panewait/

What came of waiting for a pane to do something.

Running out of time is an outcome rather than an error, because a caller
retries "it has not happened yet" and "tmux could not be reached"
differently, and an error kind would make them look alike.

## Example

```rust
use libtmux::PaneWait;

fn keep_waiting(outcome: PaneWait) -> bool {
    matches!(outcome, PaneWait::TimedOut)
}

assert!(keep_waiting(PaneWait::TimedOut));
assert!(!keep_waiting(PaneWait::Dead));
```

## Members

- `Arrived` (constant): What was waited for happened.
- `Dead` (constant): The pane's process ended before it happened. Waiting longer cannot change the answer, which is why this is not a timeout.
- `TimedOut` (constant): The time ran out with the pane still alive.
