# server.Server.from_env_value

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

```
server.Server.from_env_value(value: Option<impl Into<OsString>>) -> Result<Self, Error>
```

Build a server from an explicit `TMUX` value.

This resolves on behalf of another pane, or in a test, without touching
the process environment.

# Errors

Returns an error when the value is absent, empty, or not shaped like
tmux's triple, and when the socket path it names is unusable.
