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

Server.require_generation

Fail unless the daemon answering is still the one that was captured.

Source and package
Qualified name
libtmux::server::Server::require_generation
Module
server
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server.rs
pub async fn require_generation( &self, expected: ServerGeneration ) -> Result<(), Error>

Description#

Errors

Returns Error::ServerGenerationChanged when a different daemon now holds this endpoint, or a transport error when tmux cannot be reached.

Parameters
Esc

Type to search.

Reference previewOpen reference