pub enum CrystalError {
Io(Error),
Json(Error),
TileNotFound(String),
InvalidArgument(String),
Corruption {
tile_id: String,
detail: String,
},
}Expand description
Core error type for memory-crystal operations.
Variants§
Io(Error)
I/O error reading or writing tile data.
Json(Error)
JSON serialization/deserialization error.
TileNotFound(String)
A tile was not found in the crystal.
InvalidArgument(String)
Invalid argument provided.
Corruption
Corruption detected in tile data.
Trait Implementations§
Source§impl Debug for CrystalError
impl Debug for CrystalError
Source§impl Display for CrystalError
impl Display for CrystalError
Source§impl Error for CrystalError
impl Error for CrystalError
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<Error> for CrystalError
impl From<Error> for CrystalError
Auto Trait Implementations§
impl !RefUnwindSafe for CrystalError
impl !UnwindSafe for CrystalError
impl Freeze for CrystalError
impl Send for CrystalError
impl Sync for CrystalError
impl Unpin for CrystalError
impl UnsafeUnpin for CrystalError
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