Server.typed_global_window_option
Read one global window option, decoded according to its declared kind.
Source and package
- Qualified name
-
libtmux::server:: Server:: typed _global _window _option - Module
- server
- Declared in
Server- Package
- libtmux
- Source
- crates/libtmux/src/server/settings.rs
-
Description#
Windows inherit from this table. Absence and decoding work as in
Self::typed_option().Errors
Returns an error when tmux does not recognize the option name.
Examples#
use libtmux::OptionValue;let base = server.typed_global_window_option("pane-base-index").await?;assert!(matches!(base, Some(OptionValue::Number(_))));