I'm trying to use the "multiple error type into one using enum" approach to handle associated errors on types I use in my library, accessed only through generics and traits (in other words I do not know, or control what actual types are going to be used here).
The playground link with some comments is here: Rust Playground
The error I'm getting is: conflicting implementations of trait
std::convert::From<UnifiedError<_, >>for type
UnifiedError<, _>:
How can I make use of From for these generics/associated types such that ?
would work? Do I have to use manual boilerplate and construct the error enum manually for each operation ala if func().is_ok() { return Err(MyError::fromSecondGeneric(...) }
??