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

test.TestServerError.kind

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

View as Markdown

Module
test
Declared in
TestServerError
Package
libtmux
Source
crates/libtmux/src/test.rs
kind ( self ) → TestServerErrorKind
method [source]
method [source]
kind

Return the stable category for this failure.

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);

0 declared, 0 inherited

Esc

Type to search.