# session.settings.Session.option_names

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

```
session.settings.Session.option_names(self) -> Result<Vec<String>, Error>
```

List the option names set at this session's scope.

Values are not included: tmux renders them for display with three
different quoting styles, so re-parsing them would be guesswork. Read
each value with [`Self::get_option`], which returns exact bytes.

# Errors

Returns an error when tmux refuses the listing.
