# server.Server.typed_option

- **Module:** server.Server
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/server/settings.rs#L630
- **Page:** https://libtmux.org/en/rs/latest/reference/server-server-typed_option/

```
server.Server.typed_option(self, name: &str) -> Result<Option<OptionValue>, Error>
```

Read one server option, decoded according to its declared kind.

The one way to read a single option; [`OptionValue`] says how reads
and writes fit together. `TmuxText::from(value)` recovers the exact
bytes tmux stored.

`None` means the option holds nothing: a built-in option that is unset,
or a user option that was never set. tmux prints nothing for an option
set to the empty string either, so that also reads as `None`.

# Errors

Returns an error when tmux does not recognize the option name.
