PaneWait
What came of waiting for a pane to do something.
Source and package
- Qualified name
-
libtmux::pane:: Pane Wait - Module
- pane
- Package
- libtmux
- Source
- crates/libtmux/src/pane.rs
-
Description#
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.
Examples#
use libtmux::PaneWait;fn keep_waiting(outcome: PaneWait) -> bool {matches!(outcome, PaneWait::TimedOut)}assert!(keep_waiting(PaneWait::TimedOut));assert!(!keep_waiting(PaneWait::Dead));