ControlEvents.next_event
Return the next notification or terminal error, then None.
Source and package
- Qualified name
-
libtmux::control:: Control Events:: next _event - Module
- control
- Declared in
ControlEvents- Package
- libtmux
- Source
- crates/libtmux/src/control.rs
-
Description#
Once
Noneis returned, subsequent calls also returnNone. SeeControlEventsfor 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.
Guides#
Pages that discuss next_event.