On this page
version.TmuxVersion.require
- Module
- version
- Declared in
- TmuxVersion
- Package
- libtmux
- Source
- crates/libtmux/src/version.rs
- require ( self , capability : &static str , needs : ReleaseVersion ) Result<(), Error>
-
Refuse a capability this release is too old for.
tmux usually accepts an unknown flag and ignores it, so without this "your tmux is too old" arrives as "the command did nothing". A development build carries no numbered release to compare and is taken at its word rather than refused.
Errors
Returns
Error::UnsupportedCapabilitywhen this release is belowneeds.
0 declared, 0 inherited