# window.Window.from_env_value

- **Module:** window.Window
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/window.rs#L170
- **Page:** https://libtmux.org/reference/rs/window-window-from_env_value/

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

Find a window from an explicit `TMUX_PANE` value.

# Errors

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