Ref
An exact observed target bound to one server instance.
Source and package
- Qualified name
-
LibTmux .Ref - Module
- LibTmux
- Package
- libtmux
- Source
- lib/libtmux/ref.ex
-
Description#
A window-link ID is its observed
{session_id, index, window_id}binding, not a unique lifetime identifier. Validation detects known stale instances; it does not reserve an object or close a one-shot check/use race.Discussed in Read values, execute explicitly
Members9#
Common operations2#
- from_observation/1 function Builds a reference from an observation's own identity and server instance.
- id/0: id() ::
String
.t () | {String.t (), non_neg (), String_integer .t ()} typealias A native ID or observed session/index/window link binding; neither reserves an object's lifetime.
Other members7#
- entity: entity() property Required: building the struct without this key is an error.
- entity/0: entity() :: :session | :window | :pane | :window_link | :client typealias The target kind; physical windows and session-relative links have different identities.
- id: id() property Required: building the struct without this key is an error.
- new/3 function Validates a native identity and binds it to a nonempty instance token.
- server_instance: String
.t () property Required: building the struct without this key is an error. - t/0: t() :: %Lib
Tmux { entity: entity(), id: id(), server_instance: String.Ref .t () } typealias An exact observed identity bound to a tmux server incarnation, separate from a connection epoch. - validate/2 function Rejects malformed references and known server-instance mismatches.