server.Server.set_typed_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
- set_typed_option ( self , name : &str , value : impl Into<OptionValue> ) Result<(), Error>
-
Set one server option to a typed value, checked before it is sent.
The value must be the variant
Self::typed_optionreads back for the option;OptionValuegives the rules, and what is not checked.Errors
Returns
Error::OptionValueRefusedwithout sending anything when tmux's option table refuses the value, andError::OptionScopeMismatchwhen the option is not a server option. Otherwise returns an error when tmux rejects the name or value.Examples
server.set_typed_option("escape-time", 10).await?;
0 declared, 0 inherited