Server.set_typed_global_option
Set one global session option to a typed value, checked before it is sent.
Source and package
- Qualified name
-
libtmux::server:: Server:: set _typed _global _option - Module
- server
- Declared in
Server- Package
- libtmux
- Source
- crates/libtmux/src/server/settings.rs
-
Description#
The value must be the variant
Self::typed_global_option()reads 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 session option. Otherwise returns an error when tmux rejects the name or value.Examples#
server.set_typed_global_option("mouse", true).await?;server.set_typed_global_option("history-limit", 50_000).await?;server.set_typed_global_option("status-position", "top").await?;
tmux command#
The tmux commands behind set_typed_global_option.
tmux C API#
The C declarations in tmux that implement these commands.