TestServerError.kind
Return the stable category for this failure.
Source and package
- Qualified name
-
libtmux::test:: Test Server Error:: kind - Module
- test
- Declared in
TestServerError- Package
- libtmux
- Source
- crates/libtmux/src/test.rs
- #[must_use] pub const fn kind(&self) -> Test
Server Error Kind -
Examples#
use libtmux::test::{TestServer, TestServerErrorKind};let missing = tempfile::tempdir()?.path().join("missing-tmux");let error = TestServer::builder().tmux_executable(missing).start().await.expect_err("missing executable is rejected");assert_eq!(error.kind(), TestServerErrorKind::ExecutableNotFound);