Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-rs latest

TestServerError.kind

Return the stable category for this failure.

Source and package
Qualified name
libtmux::test::TestServerError::kind
Module
test
Declared in
TestServerError
Package
libtmux
Source
crates/libtmux/src/test.rs
#[must_use] pub const fn kind(&self) -> TestServerErrorKind

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

Type to search.

Reference previewOpen reference