# tmux_server:state/0

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** typealias
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/d1b6308440cf9eb8f6647e7ae434bce60e849368/apps/libtmux_erlang/src/tmux_server.erl#L94
- **Page:** https://libtmux.org/en/erlang/latest/reference/t-tmux_server-state-0/

```
-type state() ::
          #{phase := open | closing | closed,
            generation := reference(),
            owner := pid(),
            operations := non_neg_integer(),
            command_bytes := non_neg_integer(),
            active_bytes := non_neg_integer(),
            retained_results := non_neg_integer(),
            result_bytes := non_neg_integer()}.
```

Endpoint resource summary. owner is the supervised endpoint process, not its initiating caller. operations and command_bytes count active admission leases; active_bytes reserves output capacity. Retired results are bounded separately by retained_results and result_bytes. These are accounting limits, not VM heap measurements. generation identifies this endpoint handle's lifetime.
