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

List every client attached to the server, preserving any failure.

Source and package
Qualified name
libtmux::server::Server::clients
Module
server
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server/discovery.rs
Other languages
Perlmethod Erlang PowerShellcmdlet Juliafunction Elixirfunction Haskell Common Lispfunction PythonRuby Lua TypeScriptGoJavaC#C++SwiftKotlinScalaOCamlfunction F#function Clojure
pub async fn clients(&self) -> Result<Vec<Client>, Error>

Description#

Errors

Returns an error when the list command cannot run, or when its output cannot be decoded into snapshots.

In other ports#

List the server's attached clients

Equivalents of List the server's attached clients in other languages
Language Equivalent
Python libtmux.Server.clients
Ruby LibTmux::Server#list_clients
PowerShell LibTmux\Get-TmuxClient Acquires attached clients through -Server and returns shared .NET LibTmux.Client objects.
Julia LibTmux.clients clients reads attached clients from a captured Snapshot without contacting tmux.
Elixir LibTmux.Snapshot.clients/1 Returns a Selection of captured attached clients without contacting tmux.
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
Common Lisp libtmux:clients clients returns fresh attached-client observations from a retained snapshot.
TypeScript server.Server.clients
Go tmux.Server.Clients
Java io.github.libtmux.Server.clients
Clojure libtmux.core/clients!
Kotlin io.github.libtmux.kotlin.Server.clients
Scala io.github.libtmux.scaladsl.Server.clients
C# LibTmux.Server.Clients
F# LibTmux.FSharp.Server.clients Builds a deferred client query on the shared .NET LibTmux.Server. Query.list acquires attached clients.
C++ libtmux::Server::clients
Swift Server.clients()
OCaml Libtmux.Snapshot.clients Reads captured attached-client observations, separate from transport Client.t handles.
Perl LibTmux::Snapshot::clients Local captured client membership; Server::clients explicitly acquires a new graph.

No equivalent is recorded in Lua or Erlang.

Esc

Type to search.

Reference previewOpen reference