# client.Client.refreshed

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

```
client.Client.refreshed(self) -> Result<Self, Error>
```

Return a new handle holding the client's current state.

# Errors

Returns [`Error::ObjectGone`] when the client has detached, and
[`Error::ClientSuspended`] when it is stopped rather than gone. The
two are worth telling apart: [`Error::is_object_gone`] answers false
for the second, because the same handle works again once the client
resumes. Returns a listing error when tmux could not be read.
