Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

Rust API

constant libtmux-rs latest

Error.OptionScopeMismatch

The handle's scope is not one tmux keeps this option in.

Source and package
Qualified name
libtmux::error::Error::OptionScopeMismatch
Module
error
Declared in
Error
Package
libtmux
Source
crates/libtmux/src/error.rs

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 mouse through a pane handle becomes the whole session's mouse and 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#

OptionScopeMismatch fields
NameTypeDescription
option String The option that was asked for.
requested crate::OptionScope The scope the handle implies.
declared &'static [crate::OptionScope] Every scope tmux will actually store the option at.

Guides#

Pages that discuss OptionScopeMismatch.

Esc

Type to search.

Reference previewOpen reference