pub enum StoreError {
Io {
op: &'static str,
path: PathBuf,
source: Error,
},
MagicTooShort {
label: &'static str,
len: usize,
},
MagicMismatch {
label: &'static str,
},
SchemaMismatch {
label: &'static str,
found: u16,
expected: u16,
},
BincodeDecode(DecodeError),
BincodeEncode(EncodeError),
}Expand description
Errors from reading/writing the on-disk asset-db / cache binaries.
Distinguishes filesystem errors (path-tagged), envelope-level
validation (magic + schema), and the underlying bincode codec
errors. Consumers can match on SchemaMismatch to detect “needs
re-bake” without string-parsing.
Variants§
Io
MagicTooShort
MagicMismatch
SchemaMismatch
BincodeDecode(DecodeError)
BincodeEncode(EncodeError)
Trait Implementations§
Source§impl Debug for StoreError
impl Debug for StoreError
Source§impl Display for StoreError
impl Display for StoreError
Source§impl Error for StoreError
impl Error for StoreError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DecodeError> for StoreError
impl From<DecodeError> for StoreError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<EncodeError> for StoreError
impl From<EncodeError> for StoreError
Source§fn from(source: EncodeError) -> Self
fn from(source: EncodeError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for BakeError
impl From<StoreError> for BakeError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StoreError
impl !RefUnwindSafe for StoreError
impl Send for StoreError
impl Sync for StoreError
impl Unpin for StoreError
impl UnsafeUnpin for StoreError
impl !UnwindSafe for StoreError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more