Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Rust API

Rust documentation

server.Server.lock_all

Rust

View as Markdown

Module
server
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server.rs
Other languages
Python TypeScript GoJava.NET C++ Swift
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.

In other ports Lock every client attached to the server

0 declared, 0 inherited

Esc

Type to search.