error.ServerConfigurationErrorKind
Rust
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- error
- Package
- libtmux
- Source
- crates/libtmux/src/error.rs
-
The category of an invalid
crate::ServerBuilderconfiguration.Rejected path and environment bytes are never retained by this value.
Examples
use libtmux::{Error, ServerConfigurationErrorKind};// A socket name and a socket path are two ways to say the same thing, and// tmux has no rule for which wins, so the builder refuses rather than picks.let failure = libtmux::Server::builder().socket_name("named").socket_path("/tmp/libtmux-rs-dev/explicit").build().expect_err("two socket selectors");assert!(matches!(failure,Error::InvalidServerConfiguration {kind: ServerConfigurationErrorKind::ConflictingSocketSelectors,..},));// The rejected bytes are not carried in the error, so logging it cannot// disclose a path.assert!(!failure.to_string().contains("/tmp/"));
9 declared, 0 inherited
Members
- ConflictingSocketSelectors constant A socket name and an explicit socket path were both configured.
- InvalidColorMode constant The requested color mode was neither 88 nor 256 colors.
- InvalidConfigPath constant A config path was empty or contained a NUL byte.
- InvalidSocketName constant A socket name was not one non-empty path component.
- InvalidSocketPath constant An explicit socket path was empty or contained a NUL byte.
- MalformedTmuxVariable constant The
TMUXvariable is present but is not tmux's triple. - NotInsideTmux constant There is no
TMUXvariable, so this process is not inside tmux. - SocketRootUnavailable constant A stable socket root could not be captured.
- WorkingDirectoryUnavailable constant The process working directory could not be captured.