# error.Error.OptionValueRefused

- **Module:** error.Error
- **Package:** libtmux
- **Language:** Rust
- **Kind:** constant
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/error.rs#L517
- **Page:** https://libtmux.org/en/rs/latest/reference/error-error-optionvaluerefused/

A typed option write that tmux's option table refuses, so nothing was sent.

Raised by `set_typed_option` and its siblings before dispatch, never by
tmux, and the option is left as it was. [`crate::OptionValue`] says
which variant each kind of option takes. The value is not kept, as no
option value is; `reason` says what the option takes instead.
