# client.Client

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

Clients compare by server endpoint and client name.

## Members

- `new` (method) — Build a handle from a hydrated snapshot.
- `name` (method)
- `tty` (method)
- `term_name` (method)
- `pid` (method)
- `width` (method)
- `height` (method)
- `created` (method)
- `is_readonly` (method)
- `is_control_mode` (method)
- `server_identity` (method) — Return the identity of the server this client is attached to.
- `refresh` (method) — Replace this handle's snapshot with the client's current state.
- `refreshed` (method) — Return a new handle holding the client's current state.
- `attached_session` (method) — The session this client is attached to.
- `attached_window` (method) — The current window of the session this client is attached to.
- `attached_pane` (method) — The active pane of the current window of this client's session.
- `detach` (method) — Detach this client from its server.
- `suspend` (method) — Suspend this client, as if its user pressed the suspend key.
- `lock` (method) — Lock this client's terminal.
- `redraw` (method) — Redraw this client's terminal.
- `switch_to` (method) — Point this client at another session.
