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.

Rust API

constant libtmux-rs latest

Error.SessionExists

A session of this name already exists.

Source and package
Qualified name
libtmux::error::Error::SessionExists
Module
error
Declared in
Error
Package
libtmux
Source
crates/libtmux/src/error.rs
SessionExists { name: String, }

Description#

Classified rather than left as a generic refusal because it is the one creation failure a caller routinely expects and handles: it means "pick another name", not "tmux is broken". Checking with has-session first would race, since another process can take the name in between.

Fields1#

SessionExists fields
NameTypeDescription
name String The name that was already taken.
Esc

Type to search.

Reference previewOpen reference