zboxfs / zbox

Zero-details, privacy-focused in-app file system.
https://zbox.io/fs/
Apache License 2.0
1.53k stars 74 forks source link

zbox::Error is not accessible from within std::io::Error #65

Open vi opened 4 years ago

vi commented 4 years ago

Only text description is copied into std::io::Error, not the actual matchable zbox::Error.

burmecia commented 4 years ago

There is a variant Io error in Zbox::Error https://docs.rs/zbox/0.8.8/zbox/enum.Error.html. Not sure why you cannot match it? Could you post your code?

Or maybe you're talking about convert Zbox::Error to Io::Error? In this case, you can only get description not the error kind. That's because many Zbox errors are not storage IO related, so there is no error kind for that.