Server.access_rules
The users on this server's access list.
Source and package
- Qualified name
-
libtmux::server:: Server:: access _rules - Module
- server
- Declared in
Server- Package
- libtmux
- Source
- crates/libtmux/src/server.rs
-
Description#
The owner is always present and always writable, and tmux refuses to change their entry, so a caller cannot lock itself out.
Errors
Returns an error when the daemon is unsupported, cannot be reached, or refuses the listing.
Examples#
let guard = libtmux::test::TestServer::new().await?;// Whoever started the server owns it and may act.let rules = guard.server().access_rules().await?;assert_eq!(rules.len(), 1);assert_eq!(rules[0].mode(), libtmux::AccessMode::Write);guard.shutdown().await?;
tmux command#
The tmux commands behind access_rules.
tmux C API#
The C declarations in tmux that implement these commands.