#[non_exhaustive]
pub enum Error {
UuidTaken,
Datastore(Box<dyn StdError + Send + Sync>),
NotIndexed,
Unsupported,
}Expand description
An error triggered by the datastore
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UuidTaken
Datastore(Box<dyn StdError + Send + Sync>)
An error occurred in the underlying datastore
NotIndexed
A query occurred on a property that isn’t indexed
Unsupported
For functionality that isn’t supported
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
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<Box<ErrorKind, Global>> for Error
impl From<Box<ErrorKind, Global>> for Error
source§fn from(err: BincodeError) -> Self
fn from(err: BincodeError) -> Self
Converts to this type from the input type.