[][src]Enum polodb_core::DbErr

pub enum DbErr {
    UnexpectedIdType(u8u8),
    NotAValidKeyType(String),
    NotAValidField(String),
    ValidationError(String),
    InvalidOrderOfIndex(String),
    IndexAlreadyExists(String),
    FieldTypeUnexpected(Box<FieldTypeUnexpectedStruct>),
    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(String),
    IncrementNullField,
    VmIsHalt,
    MetaVersionMismatched(u32u32),
    CollectionAlreadyExits(String),
    Busy,
}

Variants

UnexpectedIdType(u8u8)
NotAValidKeyType(String)
NotAValidField(String)
ValidationError(String)
InvalidOrderOfIndex(String)
IndexAlreadyExists(String)
FieldTypeUnexpected(Box<FieldTypeUnexpectedStruct>)
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(String)
IncrementNullField
VmIsHalt
MetaVersionMismatched(u32u32)
CollectionAlreadyExits(String)
Busy

Trait Implementations

impl Debug for DbErr[src]

impl Display for DbErr[src]

impl From<BsonErr> for DbErr[src]

impl From<Error> for DbErr[src]

impl From<Utf8Error> for DbErr[src]

Auto Trait Implementations

impl !RefUnwindSafe for DbErr

impl !Send for DbErr

impl !Sync for DbErr

impl Unpin for DbErr

impl !UnwindSafe for DbErr

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.