ScopeError.into_operation
Take the operation's own error, when the operation is what failed.
Source and package
- Qualified name
-
libtmux::error:: scoped:: Scope Error:: into _operation - Module
- error.scoped
- Declared in
ScopeError- Package
- libtmux
- Source
- crates/libtmux/src/error/scoped.rs
-
Description#
Nonefor a creation failure, where the operation never ran, and for a cleanup-only failure, where it succeeded.Examples#
use libtmux::ScopeError;let failed: ScopeError<(), _> = ScopeError::Operation("no route");assert_eq!(failed.into_operation(), Some("no route"));- Type parameters
-
-
Edeclared byScopeError<T, E>
-