TmuxVersion.ensure_supported
Require a numbered release to meet the minimum supported version.
Source and package
- Qualified name
-
libtmux::version:: Tmux Version:: ensure _supported - Module
- version
- Declared in
TmuxVersion- Package
- libtmux
- Source
- crates/libtmux/src/version.rs
-
Description#
A numbered
next-X.Yreport can establish the floor. An undatedmasterreport remains diagnostic and cannot qualify dispatch.Errors
Returns
Error::UnsupportedTmuxVersionwhen the detected release is below tmux 3.3a, andError::UnrecognizedTmuxVersionfor a baremaster, which names no release. The version check also refuses a daemon report that is well framed but names no release at all (openbsd-*,3.3a-dev) asError::UnrecognizedTmuxVersion, before aTmuxVersionexists to call this on.Examples#
use libtmux::TmuxVersion;let version = TmuxVersion::parse_output(b"tmux 3.3a\n")?;version.ensure_supported()?;