# error.Error.ServerMismatch

- **Module:** error.Error
- **Package:** libtmux
- **Language:** Rust
- **Kind:** constant
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/error.rs#L696
- **Page:** https://libtmux.org/en/rs/latest/reference/error-error-servermismatch/

Handles passed to one operation belong to different tmux endpoints.

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.
