Enum polodb_core::DbErr[][src]

pub enum DbErr {
Show 45 variants UnexpectedIdType(u8u8), 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(u32u32), DecodeEOF, DataOverflow, DataExist(Value), PageSpaceNotEnough, DataHasNoPrimaryKey, ChecksumMismatch, JournalPageSizeMismatch(u32u32), 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(u32u32), CollectionAlreadyExits(String), UnableToUpdatePrimaryKey, NotAValidDatabase, Busy, DatabaseOccupied,
}

Variants

UnexpectedIdType(u8u8)

Tuple Fields of UnexpectedIdType

0: u81: u8
NotAValidKeyType(String)

Tuple Fields of NotAValidKeyType

0: String
InvalidField(Box<InvalidFieldStruct>)

Tuple Fields of InvalidField

0: Box<InvalidFieldStruct>
ValidationError(String)

Tuple Fields of ValidationError

0: String
InvalidOrderOfIndex(String)

Tuple Fields of InvalidOrderOfIndex

0: String
IndexAlreadyExists(String)

Tuple Fields of IndexAlreadyExists

0: String
FieldTypeUnexpected(Box<FieldTypeUnexpectedStruct>)

Tuple Fields of FieldTypeUnexpected

0: Box<FieldTypeUnexpectedStruct>
UnexpectedTypeForOp(Box<UnexpectedTypeForOpStruct>)

Tuple Fields of UnexpectedTypeForOp

0: Box<UnexpectedTypeForOpStruct>
ParseError(String)

Tuple Fields of ParseError

0: String
IOErr(Box<Error>)

Tuple Fields of IOErr

0: Box<Error>
UTF8Err(Box<Utf8Error>)

Tuple Fields of UTF8Err

0: Box<Utf8Error>
BsonErr(Box<BsonErr>)

Tuple Fields of BsonErr

0: Box<BsonErr>
DataSizeTooLarge(u32u32)

Tuple Fields of DataSizeTooLarge

0: u321: u32
DecodeEOF
DataOverflow
DataExist(Value)

Tuple Fields of DataExist

0: Value
PageSpaceNotEnough
DataHasNoPrimaryKey
ChecksumMismatch
JournalPageSizeMismatch(u32u32)

Tuple Fields of JournalPageSizeMismatch

0: u321: u32
SaltMismatch
PageMagicMismatch(u32)

Tuple Fields of PageMagicMismatch

0: u32
ItemSizeGreaterThanExpected
CollectionNotFound(String)

Tuple Fields of CollectionNotFound

0: String
CollectionIdNotFound(u32)

Tuple Fields of CollectionIdNotFound

0: u32
MetaPageIdError
CannotWriteDbWithoutTransaction
StartTransactionInAnotherTransaction
RollbackNotInTransaction
IllegalCollectionName(String)

Tuple Fields of IllegalCollectionName

0: String
UnexpectedHeaderForBtreePage(Box<UnexpectedHeader>)

Tuple Fields of UnexpectedHeaderForBtreePage

0: Box<UnexpectedHeader>
KeyTypeOfBtreeShouldNotBeZero
UnexpectedPageHeader
UnexpectedPageType
UnknownTransactionType
BufferNotEnough(usize)

Tuple Fields of BufferNotEnough

0: usize
UnknownUpdateOperation(Rc<str>)

Tuple Fields of UnknownUpdateOperation

0: Rc<str>
IncrementNullField
VmIsHalt
MetaVersionMismatched(u32u32)

Tuple Fields of MetaVersionMismatched

0: u321: u32
CollectionAlreadyExits(String)

Tuple Fields of CollectionAlreadyExits

0: String
UnableToUpdatePrimaryKey
NotAValidDatabase
Busy
DatabaseOccupied

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.