# server.ChannelWait

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

What came of waiting on a `wait-for` channel.

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

## Example

```rust
use libtmux::ChannelWait;

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

assert!(keep_waiting(ChannelWait::TimedOut));
assert!(!keep_waiting(ChannelWait::Signalled));
```

## Members

- `Signalled` (constant): Something signalled the channel, or a signal was already waiting.
- `TimedOut` (constant): The time ran out with the channel unsignalled.
