# Server.mode

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/Server.swift#L40
- **Page:** https://libtmux.org/reference/swift/server-mode/

How work from this server reaches tmux.

A mode belongs to the value, not to the process or the task, so this is
the whole of the answer — there is no setting elsewhere to consult and
nothing inherited from a caller. Reading it is how a program checks the
precedence rule rather than trusting it: a server handed to you inside
``using(_:_:)`` reports that mode, and any other server reports
``TmuxMode/direct``.
