Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-rs latest

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
pub async fn access_rules(&self) -> Result< Vec<AccessRule>, Error >

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.

Esc

Type to search.

Reference previewOpen reference