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.environment_all

Read the server's whole environment.

Source and package
Qualified name
libtmux::server::Server::environment_all
Module
server
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server/settings.rs
pub async fn environment_all(&self) -> Result< BTreeMap<String, EnvironmentEntry>, Error >

Description#

Costs one tmux command, read the way Session::environment_all() describes: each value reads exactly as Self::environment() reads it.

Errors

Returns an error when tmux cannot be reached or refuses the listing, and Error::DecodeListing when the listing is not in the shape tmux prints. An empty map means the server holds nothing, never that the listing failed.

Guides#

Pages that discuss environment_all.

Esc

Type to search.

Reference previewOpen reference