tmux_server:bind/2
Explicitly read current fields from this server and register the new value. For sessions, physical windows and panes, the read uses the stable ID and discards the supplied field observations. This explicit call accepts an edited target; ordinary actions require its captured target association to match and reject mismatches before dispatch. The returned row carries a new private observation association; see tmux_model. It provides no atomic identity check. Window-link binding checks its session/index and expected physical window. A replaced or missing membership returns stale_link. This observed preflight does not make a later action atomic.
Source and package
- Qualified name
-
tmux_server: bind/2 - Declared in
tmux_server- Package
- libtmux_erlang
- Source
- apps/libtmux_erlang/src/tmux_server.erl
- bind(Server, Row) -spec bind(t(), tmux
_model: ()) -> {ok, tmuxrow _model: ()} | {error, map()}.row -
Description#
Invalid rows are rejected before I/O:
Examples#
1> tmux_server:bind(invalid_server, invalid_row).{error,#{code => invalid_row,path => []}}
Guides#
Pages that discuss bind/2.
- Concepts