Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

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

View as Markdown

Module
error.scoped
Declared in
ScopeError
Package
libtmux
Source
crates/libtmux/src/error/scoped.rs
into_operation ( self ) → Option<E>
method [source]
method [source]
into_operation

Take the operation's own error, when the operation is what failed.

None for 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

Esc

Type to search.