[−][src]Trait extracterr::Bundle
Extension trait for bundling context with errors through Result
types
Associated Types
type Bundled
The output error type after bundling with the provided context
Required methods
fn bundle(self, context: C) -> Result<T, Self::Bundled>
use extracterr::{Bundle, Bundled}; struct Dummy(i32); fn do_thing() -> Result<(), std::io::Error> { // ... } let r = do_thing().bundle(Dummy(0)); //: Result<(), Bundled<std::io::Error, Dummy>>
Implementations on Foreign Types
impl<T, E, C> Bundle<T, C> for Result<T, E> where
E: Error + Send + Sync + 'static,
C: 'static,
[src]
Loading content...
E: Error + Send + Sync + 'static,
C: 'static,