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

error.IdParseError

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

View as Markdown

Module
error
Package
libtmux
Source
crates/libtmux/src/error.rs
struct error.IdParseError
structoverload [source]
structoverload [source]
struct error.IdParseError

An invalid scope-specific tmux object ID.

The error records the expected sigil but never retains the rejected input.

Examples

use libtmux::SessionId;
// The sigil is the whole difference between the id types, so a mistake
// names the one that was expected.
let error = "@1".parse::<SessionId>().expect_err("@ denotes a window");
assert_eq!(error.expected_sigil(), '$');

1 declared, 0 inherited

Members

  • expected_sigil method Return the sigil required by the requested ID scope.
Esc

Type to search.