Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

constant libtmux-rs latest

ControlModeErrorKind.Unread

The caller stopped reading events, so the connection could not reach this command's reply.

Source and package
Qualified name
libtmux::error::ControlModeErrorKind::Unread
Module
error
Declared in
ControlModeErrorKind
Package
libtmux
Source
crates/libtmux/src/error.rs
Unread

Description#

A reply arrives on the connection the events arrive on. The connection holds what a caller has not taken and keeps reading while a reply is outstanding, but not without limit, and past that limit it stops rather than growing. The events remain held and the connection carries on once they are taken.

A new request can be refused before it is written, but an already-live request gets the same error after crossing the write boundary. This kind therefore does not prove that a mutation is safe to replay. Drain the events before sending more work, or watch from a task of its own so the two never contend.

Esc

Type to search.

Reference previewOpen reference