pub enum SpatioError {
DatabaseClosed,
LockError,
SerializationError,
SerializationErrorWithContext(String),
RewriteInProgress,
InvalidTimestamp,
UnexpectedEof,
InvalidFormat,
InvalidInput(String),
Io(Error),
Other(String),
}Expand description
Simplified error types for Spatio
Variants§
DatabaseClosed
Database is closed
LockError
Lock acquisition failed
SerializationError
Serialization/deserialization error
SerializationErrorWithContext(String)
Serialization error with context
RewriteInProgress
Rewrite operation is already in progress
InvalidTimestamp
Invalid timestamp value
UnexpectedEof
Unexpected end of file during deserialization
InvalidFormat
Invalid data format
InvalidInput(String)
Invalid input parameter
Io(Error)
I/O error from persistence layer
Other(String)
Generic error with message
Trait Implementations§
Source§impl Debug for SpatioError
impl Debug for SpatioError
Source§impl Display for SpatioError
impl Display for SpatioError
Source§impl Error for SpatioError
impl Error for SpatioError
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()
Auto Trait Implementations§
impl Freeze for SpatioError
impl !RefUnwindSafe for SpatioError
impl Send for SpatioError
impl Sync for SpatioError
impl Unpin for SpatioError
impl !UnwindSafe for SpatioError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more