Error.OptionScopeMismatch
The handle's scope is not one tmux keeps this option in.
Source and package
- Qualified name
-
libtmux::error:: Error:: Option Scope Mismatch - Module
- error
- Declared in
Error- Package
- libtmux
- Source
- crates/libtmux/src/error.rs
- OptionScopeMismatch { option: String, requested: crate::
Option , declared: &'static [crate::Scope Option ], }Scope -
Description#
Raised instead of sending the write, because tmux would not refuse it. tmux resolves an option by name rather than by the flags it was sent with, so
mousethrough a pane handle becomes the whole session'smouseand reports success. Reading it back through the same handle resolves the same way and agrees, so nothing downstream notices.crate::OptionSchema::accepts()answers ahead of the call, for a caller choosing a handle rather than reacting to a refusal.
Fields3#
| Name | Type | Description |
|---|---|---|
| option | String | The option that was asked for. |
| requested | crate:: | The scope the handle implies. |
| declared | &'static [crate:: | Every scope tmux will actually store the option at. |
Guides#
Pages that discuss OptionScopeMismatch.