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

target.SessionNameError

Rust
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
target
Package
libtmux
Source
crates/libtmux/src/target.rs
enum target.SessionNameError
enum [source]
enum [source]
enum target.SessionNameError

Why a session name is one tmux could not address.

Examples

use libtmux::{SessionName, SessionNameError};
// tmux splits a target on `:` and `.`, so a name holding either would not be
// addressable by name afterwards.
assert!(matches!(
SessionName::new("build:release"),
Err(SessionNameError::Separator { separator: ':' }),
));
assert!(matches!(SessionName::new(""), Err(SessionNameError::Empty)));
assert!(SessionName::new("build-release").is_ok());

2 declared, 0 inherited

Members

  • Empty constant The name is empty, which tmux reads as "the current session".
  • Separator constant The name holds a character tmux splits targets on.
Esc

Type to search.