pub enum DbErr {
Show 45 variants
UnexpectedIdType(u8, u8),
NotAValidKeyType(String),
InvalidField(Box<InvalidFieldStruct>),
ValidationError(String),
InvalidOrderOfIndex(String),
IndexAlreadyExists(String),
FieldTypeUnexpected(Box<FieldTypeUnexpectedStruct>),
UnexpectedTypeForOp(Box<UnexpectedTypeForOpStruct>),
ParseError(String),
IOErr(Box<Error>),
UTF8Err(Box<Utf8Error>),
BsonErr(Box<BsonErr>),
DataSizeTooLarge(u32, u32),
DecodeEOF,
DataOverflow,
DataExist(Value),
PageSpaceNotEnough,
DataHasNoPrimaryKey,
ChecksumMismatch,
JournalPageSizeMismatch(u32, u32),
SaltMismatch,
PageMagicMismatch(u32),
ItemSizeGreaterThanExpected,
CollectionNotFound(String),
CollectionIdNotFound(u32),
MetaPageIdError,
CannotWriteDbWithoutTransaction,
StartTransactionInAnotherTransaction,
RollbackNotInTransaction,
IllegalCollectionName(String),
UnexpectedHeaderForBtreePage(Box<UnexpectedHeader>),
KeyTypeOfBtreeShouldNotBeZero,
UnexpectedPageHeader,
UnexpectedPageType,
UnknownTransactionType,
BufferNotEnough(usize),
UnknownUpdateOperation(Rc<str>),
IncrementNullField,
VmIsHalt,
MetaVersionMismatched(u32, u32),
CollectionAlreadyExits(String),
UnableToUpdatePrimaryKey,
NotAValidDatabase,
Busy,
DatabaseOccupied,
}
Tuple Fields of UnexpectedIdType
Tuple Fields of NotAValidKeyType
Tuple Fields of InvalidField
Tuple Fields of ValidationError
Tuple Fields of InvalidOrderOfIndex
Tuple Fields of IndexAlreadyExists
Tuple Fields of FieldTypeUnexpected
Tuple Fields of UnexpectedTypeForOp
Tuple Fields of ParseError
Tuple Fields of DataExist
Tuple Fields of JournalPageSizeMismatch
Tuple Fields of PageMagicMismatch
Tuple Fields of CollectionNotFound
Tuple Fields of CollectionIdNotFound
Tuple Fields of IllegalCollectionName
Tuple Fields of BufferNotEnough
Tuple Fields of UnknownUpdateOperation
Tuple Fields of CollectionAlreadyExits
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
Converts the given value to a String
. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.