ScopeError.tmux_error
Borrow the tmux error from creation or cleanup.
Source and package
- Qualified name
-
libtmux::error:: scoped:: Scope Error:: tmux _error - Module
- error.scoped
- Declared in
ScopeError- Package
- libtmux
- Source
- crates/libtmux/src/error/scoped.rs
-
Description#
NoneforSelf::Operation, whoseEis the caller's own type.Examples#
use libtmux::ScopeError;let failed: ScopeError<(), &str> = ScopeError::Operation("no route");assert!(failed.tmux_error().is_none());