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

Rust API

Rust documentation

server.Server.has_session

View as Markdown

Module
server
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server/discovery.rs
Other languages
PythonTypeScriptGoJava.NET C++ Swift
has_session ( self , name : impl AsRef<[u8]> ) → Result<bool, Error>
method [source]
method [source]
has_session

Report whether a session with this exact name exists.

The comparison is over raw bytes, because tmux permits session names that are not valid UTF-8.

Errors

Returns an error when the session listing fails.

In other ports Whether a session with this name exists

0 declared, 0 inherited

Esc

Type to search.