Core LibraryalphaAPI 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.

function libtmux-cxx latest

as_command_failure

A control-wire failure as a command failure, keeping what it says about delivery — the one thing a caller cannot reconstruct.

Source and package
Qualified name
libtmux::as_command_failure
Namespace
libtmux
Package
libtmux-cxx
Source
include/libtmux/error.hpp
[[C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.Language documentation]] CommandFailure as_command_failure(ProtocolError error);template <typename Reason> requires is_validation_reason<Reason> [[C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.Language documentation]] CommandFailure as_command_failure(Reason reason);

Description#

A protocol error that never started is a validation refusal; past that point the wire is what broke, which is FailureKind::pipe.

Type parameters
  • Reason # for as_command_failure(reason)

Parameters
Esc

Type to search.

Reference previewOpen reference