add a noent / not_found errorkind

This commit is contained in:
Pat Hickey
2021-01-30 13:36:41 -08:00
parent c12cd82fc0
commit e940d31f95
3 changed files with 8 additions and 0 deletions

View File

@@ -73,6 +73,7 @@ impl From<ErrorKind> for types::Errno {
fn from(e: ErrorKind) -> types::Errno {
use types::Errno;
match e {
ErrorKind::Noent => Errno::Noent,
ErrorKind::TooBig => Errno::TooBig,
ErrorKind::Badf => Errno::Badf,
ErrorKind::Exist => Errno::Exist,