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

SessionName.new

Check a name tmux will be able to address.

Source and package
Qualified name
libtmux::target::SessionName::new
Module
target
Declared in
SessionName
Package
libtmux
Source
crates/libtmux/src/target.rs
pub fn new(name: impl Into<String>) -> Result< Self, SessionNameError >

Description#

Errors

Returns SessionNameError for an empty name, or one holding a tmux target separator.

Parameters
Esc

Type to search.

Reference previewOpen reference