pub enum DatabaseError {
InconsistentStatementBuilder,
MissingFieldDataInDecoding(Box<str>),
MissingSingleRecord,
UnexpectedBufferSize {
expected: u32,
received: u32,
},
UnexpectedRecords,
UnexpectedValueFromBytes {
expected: &'static str,
},
UnknownStatementId,
}Available on crate feature
database only.Expand description
Database Error
Variants§
InconsistentStatementBuilder
The method expand of StatementBuilder must be called only once.
MissingFieldDataInDecoding(Box<str>)
A “null” field received from the database was decoded as a non-nullable type or value.
MissingSingleRecord
Expected one record but got none.
UnexpectedBufferSize
Received size differs from expected size.
UnexpectedRecords
Expected no records but got at least one.
UnexpectedValueFromBytes
Bytes don’t represent expected type
UnknownStatementId
Received a statement ID that is not present in the local cache.
Trait Implementations§
Source§impl Debug for DatabaseError
impl Debug for DatabaseError
Source§impl From<DatabaseError> for Error
impl From<DatabaseError> for Error
Source§fn from(from: DatabaseError) -> Self
fn from(from: DatabaseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DatabaseError
impl PartialEq for DatabaseError
impl StructuralPartialEq for DatabaseError
Auto Trait Implementations§
impl Freeze for DatabaseError
impl RefUnwindSafe for DatabaseError
impl Send for DatabaseError
impl Sync for DatabaseError
impl Unpin for DatabaseError
impl UnwindSafe for DatabaseError
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