Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

error.Error.invalid_version_output_len

Rust
  • Python Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
error
Declared in
Error
Package
libtmux
Source
crates/libtmux/src/error.rs
invalid_version_output_len ( self ) → Option<usize>
method [source]
method [source]
invalid_version_output_len

Return the length of the invalid tmux -V output, when present.

The error never retains the process output itself.

Examples

use libtmux::TmuxVersion;
let output = b"invalid\n";
let error = TmuxVersion::parse_output(output).expect_err("output is invalid");
assert_eq!(error.invalid_version_output_len(), Some(output.len()));

0 declared, 0 inherited

Esc

Type to search.