server.ChannelWait
Rust
- Python Unavailable
- TypeScript Unavailable
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- server
- Package
- libtmux
- Source
- crates/libtmux/src/server.rs
-
What came of waiting on a
wait-forchannel.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.
Examples
use libtmux::ChannelWait;fn keep_waiting(outcome: ChannelWait) -> bool {matches!(outcome, ChannelWait::TimedOut)}assert!(keep_waiting(ChannelWait::TimedOut));assert!(!keep_waiting(ChannelWait::Signalled));
2 declared, 0 inherited