server.Server.typed_global_window_option
Rust
- Python Unavailable
- TypeScript Unavailable
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- server
- Declared in
- Server
- Package
- libtmux
- Source
- crates/libtmux/src/server/settings.rs
- typed_global_window_option ( self , name : &str ) Result<Option<OptionValue>, Error>
-
Read one global window option, decoded according to its declared kind.
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(_))));
0 declared, 0 inherited