# pane.Pane.refresh

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

```
pane.Pane.refresh(mut) -> Result<&mut Self, Error>
```

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

# Errors

Returns [`Error::ObjectGone`] when the pane no longer exists, or a
listing error when tmux could not be read.
