Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

struct libtmux-rs latest

IdParseError

An invalid scope-specific tmux object ID.

Source and package
Qualified name
libtmux::error::IdParseError
Module
error
Package
libtmux
Source
crates/libtmux/src/error.rs
struct error.IdParseError

Description#

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(), '$');

Members1#

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

Type to search.

Reference previewOpen reference