pub enum Error {
Sqlite(Error),
SchemaTooNew {
found: i64,
supported: i64,
},
InvalidTimestamp(String),
Json(Error),
Search(Error),
Mutation(MutationError),
Other(String),
}Expand description
Everything that can go wrong opening or writing a store.
Variants§
Sqlite(Error)
SQLite reported an error.
SchemaTooNew
The database’s user_version is newer than this build (spec §1 step 3).
InvalidTimestamp(String)
A timestamp is not RFC 3339 UTC as spec §2.4 requires.
Json(Error)
A JSON column did not parse (tree entries, attrs, detail).
Search(Error)
The embedding provider failed (spec/search §5).
Mutation(MutationError)
A mutation was refused (spec/mutate §8): the code and its data.
Other(String)
Anything else, with a message.
Implementations§
Source§impl Error
impl Error
Sourcepub fn as_mutation(&self) -> Option<&MutationError>
pub fn as_mutation(&self) -> Option<&MutationError>
The mutation error inside, if this is one.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<MutationError> for Error
impl From<MutationError> for Error
Source§fn from(e: MutationError) -> Self
fn from(e: MutationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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