pub enum StorageError {
Io(Error),
Mmap(MmapIoError),
InvalidRange {
start: u64,
end: u64,
},
Failed(String),
TmpClaimed(PathBuf),
NotReadable,
Cancelled,
}Expand description
Errors produced by storage primitives.
Notes:
- We intentionally keep this error type fairly small at this stage.
- Higher-level crates may wrap this error to add domain context (resource key, URL, etc.).
Variants§
Io(Error)
Mmap(MmapIoError)
InvalidRange
Failed(String)
TmpClaimed(PathBuf)
The atomic-chunked temp path is already claimed by another writer
(different AssetStore instance, possibly cross-process). The
caller should either wait for the holder to release (commit or
drop) and retry, or fall through to a read-only / passthrough
view of the canonical path once committed.
Reported by crate::AtomicChunked::open when the sibling temp
file already exists on disk. Filesystem-level signal — no
in-process registry involved.
NotReadable
A read targeted a resource whose processing pipeline has not yet committed (e.g. AES-128 segment reactivated for re-fetch). The underlying bytes either still hold ciphertext or are stale; the caller should treat this as transient and retry once the writer completes its commit.
Cancelled
Trait Implementations§
Source§impl Debug for StorageError
impl Debug for StorageError
Source§impl Display for StorageError
impl Display for StorageError
Source§impl Error for StorageError
impl Error for StorageError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()