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

server.ChannelWait

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

View as Markdown

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

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

Members

  • Signalled constant Something signalled the channel, or a signal was already waiting.
  • TimedOut constant The time ran out with the channel unsignalled.
Esc

Type to search.