# server.discovery.Server

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

## Members

- `sessions_or_empty` (method) — List every session on the server, in tmux's own order.
- `windows_or_empty` (method) — List every window on the server, in tmux's own order.
- `windows` (method) — List every window on the server, preserving any failure.
- `panes_or_empty` (method) — List every pane on the server, in tmux's own order.
- `panes` (method) — List every pane on the server, preserving any failure.
- `clients_or_empty` (method) — List every client attached to the server, in tmux's own order.
- `clients` (method) — List every client attached to the server, preserving any failure.
- `session` (method) — Find the session with this exact name.
- `session_by_id` (method) — Find the session with this id.
- `window_by_id` (method) — Find the window with this id, through the first link that reaches it.
- `pane_by_id` (method) — Find the pane with this id.
- `client` (method) — Find the client attached to this terminal.
- `hierarchy` (method) — Fetch the whole hierarchy in three commands.
- `has_session` (method) — Report whether a session with this exact name exists.
- `sessions` (method) — List every session on the server, preserving any failure.
