Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

pane.PaneWait

Rust
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
pane
Package
libtmux
Source
crates/libtmux/src/pane.rs
enum pane.PaneWait
enum [source]
enum [source]
enum 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.

Examples

use libtmux::PaneWait;
fn keep_waiting(outcome: PaneWait) -> bool {
matches!(outcome, PaneWait::TimedOut)
}
assert!(keep_waiting(PaneWait::TimedOut));
assert!(!keep_waiting(PaneWait::Dead));

3 declared, 0 inherited

Members

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

Type to search.