diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-02-27 06:17:06 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-02-27 06:17:06 +0800 |
| commit | 76e78fe53c03c9b4c7fa029709f06ee86ce9c865 (patch) | |
| tree | 4e3778dfb405b2c21b51df24331100b94f5356d9 /systems/storage/src/error.rs | |
| parent | 748c8a3353df887ee4b01e0e1327aa95c1c7225a (diff) | |
Add storage system with chunk-based file storage
Diffstat (limited to 'systems/storage/src/error.rs')
| -rw-r--r-- | systems/storage/src/error.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/systems/storage/src/error.rs b/systems/storage/src/error.rs new file mode 100644 index 0000000..4b3ad7e --- /dev/null +++ b/systems/storage/src/error.rs @@ -0,0 +1,8 @@ +#[derive(Debug, thiserror::Error)] +pub enum StorageIOError { + #[error("IO error: {0}")] + IOErr(#[from] std::io::Error), + + #[error("Hash too short")] + HashTooShort, +} |
