error.scoped.ScopeError.into_operation
Rust
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- error.scoped
- Declared in
- ScopeError
- Package
- libtmux
- Source
- crates/libtmux/src/error/scoped.rs
-
Take the operation's own error, when the operation is what failed.
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"));
0 declared, 0 inherited