# pane.Pane.from_env_value

- **Module:** pane.Pane
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/pane.rs#L130
- **Page:** https://libtmux.org/en/rs/latest/reference/pane-pane-from_env_value/

```
pane.Pane.from_env_value(server: &crate::Server, value: Option<impl AsRef<OsStr>>) -> Result<Option<Self>, Error>
```

Find a pane from an explicit `TMUX_PANE` value.

# Errors

Returns an error when the value is absent or is not a pane ID, or when
the pane listing fails.
