Crates.io | hun-error |
lib.rs | hun-error |
version | 0.1.1 |
source | src |
created_at | 2023-05-23 01:10:14.572506 |
updated_at | 2023-05-25 11:52:22.723744 |
description | RUST Error |
homepage | |
repository | https://gitee.com/1467792822/rerror |
max_upload_size | |
id | 871617 |
size | 16,549 |
包装OS的错误码, 统一错误码的查询和获取接口
封装i32为Error
use hun_error::*;
let err = Error::last_error();
assert_eq!(err, Error::default());
set_errno(100);
let err = Error::last_error();
assert_eq!(err, 100.into());