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

control.ControlEvents.next_event

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

View as Markdown

Module
control
Declared in
ControlEvents
Package
libtmux
Source
crates/libtmux/src/control.rs
next_event ( mut ) → Option<Result<Event, Error>>
method [source]
method [source]
next_event

Return the next notification or terminal error, then None.

Once None is returned, subsequent calls also return None. See ControlEvents for the EOF and cleanup contract.

Errors

Yields one terminal error for transport failure, unexpected EOF, a frame budget or command deadline being exceeded, executor shutdown, or failed connection cleanup. A panic in the connection task resumes here instead, since nothing else would report it.

Cancel safety

Nothing happened: a dropped call consumes neither an event nor the terminal error.

0 declared, 0 inherited

Esc

Type to search.