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.

Rust API

constant libtmux-rs latest

Error.ServerMismatch

Handles passed to one operation belong to different tmux endpoints.

Source and package
Qualified name
libtmux::error::Error::ServerMismatch
Module
error
Declared in
Error
Package
libtmux
Source
crates/libtmux/src/error.rs
ServerMismatch { operation: &'static str, }

Description#

An endpoint here is a socket path, which is what separates two servers running at once. It does not separate a server from the one that replaced it on the same socket: that daemon reissues ids from the start, so a handle held across the restart names something live and is not refused. crate::Server::require_generation() is what tells those two apart, and it costs the round trip this check does not spend.

Fields1#

ServerMismatch fields
NameTypeDescription
operation &'static str The operation that rejected the foreign handle.
Esc

Type to search.

Reference previewOpen reference