Server.startable_at_socket_path
A socket handle that may create an absent server on its first new_session() call or an explicit run({"start-server"}).
Source and package
- Qualified name
-
libtmux::Server:: startable _at _socket _path - 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.]] static expected<Server, CommandFailure > startable_at_socket_path( std::string path, std::_view optional <std::filesystem:: > configuration, Commandpath Observer observer = {}, ExecutionPolicy policy = {});template <typename Path> requires std::same <std::_as remove <Path>, std::_cvref _t filesystem:: > [[path C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.]] static expected<Server, CommandFailure > startable_at_socket_path( Path&& path, std::optional <std::filesystem:: > configuration, Commandpath Observer observer = {}, ExecutionPolicy policy = {}); -
Description#
configurationis passed to tmux as-f; absent preserves tmux's user configuration. Every other call remains no-start while the socket is absent. The selector and configuration are frozen in the handle, and concurrent first-session calls are serialized.