Server.available
Whether the tmux this handle reaches provides feature: what capabilities().supports(feature) says, and for a feature that needs a tmux release, that release too.
Source and package
- Qualified name
-
libtmux::Server:: available - Namespace
- libtmux
- Declared in
Server- Package
- libtmux-cxx
- Source
- include/libtmux/server.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.]] expected<bool, CommandFailure > available(ServerFeature feature) const; -
Description
ServerFeature::control_modeneeds one. This answersfalseexactly wherecontrol(),control_with_options(),over_control()andConnection::connect()refuse the daemon for its release, because the answer and the refusal read one release table.truemeans the release does not stand in the way, not that a daemon is listening.The release is read as
tmux_version()reads it: the daemon's when one answers, otherwise the executable's, andExecutorOptions::versionwhen the transport declares one. That can run tmux, so the call can fail, with the failuretmux_version()reports. A backend that settles the answer alone runs nothing:falsefor psmux and for an implementation nobody recognises,truefor a feature with no release floor.- Parameters
Recorded calls
source callsThe C++ reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls libtmux::Server::available.