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

DaemonState.is_running

Whether the daemon has not exited.

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

Description#

DaemonState::Unreadable counts as not running: a fixture that cannot prove its daemon is there has nothing to assert against.

Examples#

let mut guard = libtmux::test::TestServer::new().await?;
assert!(guard.daemon_state().is_running());
guard.shutdown().await?;
Esc

Type to search.

Reference previewOpen reference