# client.Client.refresh

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

```
client.Client.refresh(mut) -> Result<&mut Self, Error>
```

Replace this handle's snapshot with the client's current state.

# Errors

Returns [`Error::ObjectGone`] when the client has detached, and
[`Error::ClientSuspended`] when it is stopped rather than gone --
suspended or locked, which tmux leaves out of the same listing. Keep
the handle for the second: the client is listed again once it resumes.
Returns a listing error when tmux could not be read.
