libtmux Reference MCP Search
On this page

server.Server.lock_all

View as Markdown

Module
server
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server.rs
lock_all ( self ) Result<(), Error>
method [source]
method [source]
lock_all

Lock every client on the server.

Runs each client's lock-command, which is lock -np unless the server was told otherwise. Succeeds when nobody is attached, having locked nobody. crate::Session::lock narrows this to one session and crate::Client::lock to one client.

Errors

Returns an error when tmux refuses the command.

0 declared, 0 inherited

Esc

Type to search.