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.]] 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.]] 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.