Core LibraryalphaAPI Reference

Choose documentation 3

latest

Current version

latest
English

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

struct libtmux-rs latest

SessionId

A native tmux session ID such as $1.

Source and package
Qualified name
target.SessionId
Module
target
Package
libtmux
Source
crates/libtmux/src/target.rs
struct target.SessionId

Description#

Leading zeroes are accepted but canonicalized to the numeric tmux ID.

Examples#

use libtmux::SessionId;
let id: SessionId = "$001".parse()?;
assert_eq!(id.as_ref(), "$1");
Esc

Type to search.

Reference preview Open reference