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.

method libtmux-rs latest

ScopeError.tmux_error

Borrow the tmux error from creation or cleanup.

Source and package
Qualified name
libtmux::error::scoped::ScopeError::tmux_error
Module
error.scoped
Declared in
ScopeError
Package
libtmux
Source
crates/libtmux/src/error/scoped.rs
impl<T, E> ScopeError<T, E> #[must_use] pub const fn tmux_error(&self) -> Option<&Error>

Description#

None for Self::Operation, whose E is the caller's own type.

Examples#

use libtmux::ScopeError;
let failed: ScopeError<(), &str> = ScopeError::Operation("no route");
assert!(failed.tmux_error().is_none());
Esc

Type to search.

Reference previewOpen reference