Skip to main content

Error

Enum Error 

Source
pub enum Error {
Show 58 variants Sqlite { action: Action, code: Code, }, QueryReturnedNoRows, ParameterItems { required: usize, available: usize, }, ParameterBytes { required: usize, available: usize, }, ParameterU64 { value: u64, }, ParameterUsize { value: usize, }, ScanRows { capacity: usize, }, RowBytes { required: usize, available: usize, }, RowLayout { required: usize, available: usize, }, ColumnCount { expected: usize, actual: usize, }, ColumnType { column: i32, expected: Class, actual: Kind, }, ColumnI32 { column: i32, value: i64, }, ColumnUtf8 { column: i32, error: Utf8Error, }, CollectRows { required: usize, available: usize, }, CollectRowBytes { required: usize, available: usize, }, CollectValueBytes { required: usize, available: usize, }, PrepareSqlBytes { actual: usize, }, PragmaBytes { start: usize, added: usize, }, StatementSqlLimit { requested: i32, available: i32, }, StatementBytes { required: usize, available: usize, }, StatementMissing { bytes: usize, }, StatementTail { offset: usize, }, CatalogStatementSql { statement: usize, }, WorkLimit { action: Action, code: Code, }, WorkExhausted, Busy { action: Action, code: Code, }, TransactionBusy { action: Action, code: Code, }, TransactionAborted { action: Action, code: Code, }, Savepoints { required: usize, available: usize, }, Locked { action: Action, code: Code, }, RequestTimeout { elapsed: Elapsed, action: Action, code: Code, }, ReentrantQuery, ConnectionPoisoned, Journal { expected: Mode, actual: Mode, }, MemoryJournal, Mapped { expected: i64, actual: i64, }, TemporaryStore { actual: i64, }, MainCache { expected: i64, actual: i64, }, TemporaryCache { expected: i64, actual: i64, }, LocalAllocatorOccupied, LocalConnectionBorrowed, LocalConnectionClosed, TimerCapacity(Exhausted), Allocation(Error), NegativeLimit { value: i64, }, NegativeOffset { value: i64, }, UnexpectedRows { expected: usize, minimum: usize, }, ParameterCount { expected: usize, actual: usize, }, PathNul(usize), PathBytes { actual: usize, capacity: usize, }, StatementNul { offset: usize, }, ForeignKeys { actual: i32, }, Defensive { actual: i32, }, TrustedSchema { actual: i32, }, JournalBytes { value: u64, }, CheckpointPages { value: u32, }, MappedBytes { value: u64, }, JournalMode,
}

Variants§

§

Sqlite

Fields

§action: Action
§code: Code
§

QueryReturnedNoRows

§

ParameterItems

Fields

§required: usize
§available: usize
§

ParameterBytes

Fields

§required: usize
§available: usize
§

ParameterU64

Fields

§value: u64
§

ParameterUsize

Fields

§value: usize
§

ScanRows

Fields

§capacity: usize
§

RowBytes

Fields

§required: usize
§available: usize
§

RowLayout

Fields

§required: usize
§available: usize
§

ColumnCount

Fields

§expected: usize
§actual: usize
§

ColumnType

Fields

§column: i32
§expected: Class
§actual: Kind
§

ColumnI32

Fields

§column: i32
§value: i64
§

ColumnUtf8

Fields

§column: i32
§

CollectRows

Fields

§required: usize
§available: usize
§

CollectRowBytes

Fields

§required: usize
§available: usize
§

CollectValueBytes

Fields

§required: usize
§available: usize
§

PrepareSqlBytes

Fields

§actual: usize
§

PragmaBytes

Fields

§start: usize
§added: usize
§

StatementSqlLimit

Fields

§requested: i32
§available: i32
§

StatementBytes

Fields

§required: usize
§available: usize
§

StatementMissing

Fields

§bytes: usize
§

StatementTail

Fields

§offset: usize
§

CatalogStatementSql

Fields

§statement: usize
§

WorkLimit

Fields

§action: Action
§code: Code
§

WorkExhausted

The progress callback exhausted its quota while SQLite returned success.

§

Busy

Fields

§action: Action
§code: Code
§

TransactionBusy

Fields

§action: Action
§code: Code
§

TransactionAborted

Fields

§action: Action
§code: Code
§

Savepoints

Fields

§required: usize
§available: usize
§

Locked

Fields

§action: Action
§code: Code
§

RequestTimeout

Fields

§elapsed: Elapsed
§action: Action
§code: Code
§

ReentrantQuery

§

ConnectionPoisoned

§

Journal

Fields

§expected: Mode
§actual: Mode
§

MemoryJournal

§

Mapped

Fields

§expected: i64
§actual: i64
§

TemporaryStore

Fields

§actual: i64
§

MainCache

Fields

§expected: i64
§actual: i64
§

TemporaryCache

Fields

§expected: i64
§actual: i64
§

LocalAllocatorOccupied

§

LocalConnectionBorrowed

§

LocalConnectionClosed

§

TimerCapacity(Exhausted)

§

Allocation(Error)

§

NegativeLimit

Fields

§value: i64
§

NegativeOffset

Fields

§value: i64
§

UnexpectedRows

Fields

§expected: usize
§minimum: usize
§

ParameterCount

Fields

§expected: usize
§actual: usize
§

PathNul(usize)

§

PathBytes

Fields

§actual: usize
§capacity: usize
§

StatementNul

Fields

§offset: usize
§

ForeignKeys

Fields

§actual: i32
§

Defensive

Fields

§actual: i32
§

TrustedSchema

Fields

§actual: i32
§

JournalBytes

Fields

§value: u64
§

CheckpointPages

Fields

§value: u32
§

MappedBytes

Fields

§value: u64
§

JournalMode

SQLite returned an unrecognized journal mode name.

Trait Implementations§

Source§

impl Debug for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Error> for Error

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Exhausted> for Error

Source§

fn from(error: Exhausted) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Forget for Error

§

impl Freeze for Error

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnsafeUnpin for Error

§

impl UnwindSafe for Error

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Convert<T> for T

Source§

fn into(self) -> T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<'w, 'd, W, P, ID> Sink<'w, 'd, W, ID, Never> for P
where ID: Identity, W: Spec<TerminalFailure = Never> + 'w, P: ?Sized,

Source§

fn fail(&self, _: Id<'d, ID>, cause: Error<'w, W>, _: &mut Token<Identity<'d>>)

Source§

impl<'w, 'd, W, P, ID> Sink<'w, 'd, W, ID, Never> for P
where ID: Identity, W: Spec<OpenFailure = Never> + 'w, P: ?Sized,

Source§

fn fail( &self, _: Completion<'_, 'd, ID>, cause: Error<'w, W>, _: &mut Context<'_, 'd>, )

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.