ChannelWait
What came of waiting on a wait-for channel.
Source and package
- Qualified name
-
libtmux::server:: Channel Wait - Module
- server
- Package
- libtmux
- Source
- crates/libtmux/src/server.rs
-
Description#
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));
Variants2#
Guides#
Pages that discuss ChannelWait.