# session.Session.from_env_value

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

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

Find a session 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.
