# pane.Pane.from_env_value

- **Module:** pane.Pane
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/pane.rs#L123
- **Page:** https://libtmux.org/reference/rs/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.
