stratis-storage/devicemapper-rs

Put a map, map_err, map_fail function of the various *Status structs

mulkieran opened this issue · 1 comments

I think this would make managing the responses a good deal easier, and the three possible values will remain for a very long time.

Statuses always have three possible values, unlike the two that Option and Result type have. It's cumbersome explicilty dealing with them in stratisd, having functions in each type might be nice.