#[non_exhaustive]pub enum VaultdbError {
VaultNotFound(String),
FolderNotFound(String),
NoFrontmatter(String),
InvalidFrontmatter {
file: String,
reason: String,
},
InvalidWhereExpr(String),
TypeMismatch {
field: String,
actual: String,
expected: String,
},
RegexError {
pattern: String,
reason: String,
},
SchemaError(String),
SafetyRefused {
reason: String,
},
Internal(String),
Io(Error),
}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.
VaultNotFound(String)
FolderNotFound(String)
NoFrontmatter(String)
InvalidFrontmatter
InvalidWhereExpr(String)
TypeMismatch
RegexError
SchemaError(String)
SafetyRefused
Internal(String)
Vaultdb’s own internal invariant was violated (e.g. a journal file failed to round-trip through serde, a lock sentinel couldn’t be created because of an unexpected filesystem state). These are bugs in vaultdb-core or unrecoverable filesystem situations, not user errors.
Io(Error)
Trait Implementations§
Source§impl Debug for VaultdbError
impl Debug for VaultdbError
Source§impl Display for VaultdbError
impl Display for VaultdbError
Source§impl Error for VaultdbError
impl Error for VaultdbError
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 VaultdbError
impl !RefUnwindSafe for VaultdbError
impl Send for VaultdbError
impl Sync for VaultdbError
impl Unpin for VaultdbError
impl UnsafeUnpin for VaultdbError
impl !UnwindSafe for VaultdbError
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