# server.Server

- **Module:** server
- **Package:** libtmux
- **Language:** Rust
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/server.rs#L274
- **Page:** https://libtmux.org/reference/rs/server-server/

## Members

- `from_core` (method) — Build a handle onto a connection an object already holds.
- `spawn_control` (method)
- `new` (method) — Construct a server from the captured default endpoint context.
- `builder` (method) — Start a consuming server builder.
- `identity` (method)
- `socket_path` (method)
- `socket_name` (method)
- `config_file` (method)
- `colors` (method)
- `tmux_executable` (method)
- `default_timeout` (method)
- `capabilities` (method) — Detect and share capabilities for the configured tmux executable.
- `cmd` (method) — Execute one raw logical tmux command.
- `chain` (method) — Dispatch several commands as one `tmux a \; b` invocation.
- `shutdown` (method) — Stop accepting clients and wait for every active client process.
- `from_env` (method) — Build a server from the `TMUX` variable tmux exports into every pane.
- `from_env_value` (method) — Build a server from an explicit `TMUX` value.
- `attached_sessions_or_empty` (method) — List the sessions that have at least one client attached.
- `attached_sessions` (method) — List the sessions that have at least one client attached.
- `new_session` (method) — Create a detached session and return it.
- `lock_all` (method) — Lock every client on the server.
- `kill` (method) — Stop the tmux daemon at this endpoint.
- `set_buffer` (method) — Store data in a tmux paste buffer.
- `buffer` (method) — Read a paste buffer's exact bytes.
- `buffer_names` (method) — List the paste buffer names.
- `delete_buffer` (method) — Delete one paste buffer.
- `bind_key` (method) — Bind a key in one key table.
- `unbind_key` (method) — Remove a key binding from one key table.
- `key_bindings` (method) — List key bindings as tmux prints them.
- `format` (method) — Expand a tmux format string and return the result.
- `require` (method) — Read this server's release and refuse a capability it is too old for.
- `prompt_history` (method) — The entries tmux remembers for one kind of prompt.
- `clear_prompt_history` (method) — Forget the entries tmux remembers for prompts.
- `access_rules` (method) — The users on this server's access list.
- `grant_access` (method) — Let a user attach to this server.
- `revoke_access` (method) — Stop a user attaching to this server.
- `source_file` (method) — Load a tmux configuration file into this server.
- `with_session` (method) — Create a session, run an operation with it, then kill it.
- `run_shell` (method) — Run a shell command through tmux and collect its output.
- `spawn_shell` (method) — Run a shell command in the background and return immediately.
- `start` (method) — Start a tmux server without creating a session.
- `generation` (method) — Which tmux daemon is answering on this endpoint.
- `require_generation` (method) — Fail unless the daemon answering is still the one that was captured.
- `is_alive` (method) — Report whether a tmux daemon is answering at this endpoint.
- `check_alive` (method) — Require a tmux daemon to be answering at this endpoint.
- `from_executor_for_test` (method)
