SessionNameError
Why a session name is one tmux could not address.
Source and package
- Qualified name
-
libtmux::target:: Session Name Error - Module
- target
- Package
- libtmux
- Source
- crates/libtmux/src/target.rs
-
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());