Expand description
Wraps a custom error with Oof
Ex)
return wrap_err(std::io::Error::new(std::io::ErrorKind::Other, "Some Error")).into_res();Since wrap_err(_) returns Oof, you can chain methods like tag and attach.
Ex)
struct MyTag;
let x = 123u8;
return wrap_err(std::io::Error::new(std::io::ErrorKind::Other, "Some Error"))
.tag::<MyTag>()
.attach(x)
.into_res();