pub enum EngineFailure<F, R> {
Rollback,
Checkpoint(Error<F, R>),
Statistics(Error<F, R>),
Hook(Error<F, R>),
}Expand description
A failure of sqlive’s own that ends its handle: every later call and live query fails with the host’s failure built from it.
Variants§
Rollback
Rolling back a failed transaction failed, so a connection may still be inside it.
Checkpoint(Error<F, R>)
One of sqlive’s WAL checkpoints failed with this cause, other than on a busy or locked database, so checkpointing stopped.
Statistics(Error<F, R>)
Checking or gathering the query planner’s statistics failed with this cause, other than on a busy or locked database, so sqlive stopped keeping them.
Hook(Error<F, R>)
SQLite refused to remove a transaction’s hook with this cause, so what the connection calls next is unknown.
Trait Implementations§
Source§impl From<EngineFailure<HandleFailure, !>> for HandleFailure
impl From<EngineFailure<HandleFailure, !>> for HandleFailure
Source§fn from(failure: EngineFailure<HandleFailure, Infallible>) -> Self
fn from(failure: EngineFailure<HandleFailure, Infallible>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<F, R> !RefUnwindSafe for EngineFailure<F, R>
impl<F, R> !UnwindSafe for EngineFailure<F, R>
impl<F, R> Freeze for EngineFailure<F, R>
impl<F, R> Send for EngineFailure<F, R>
impl<F, R> Sync for EngineFailure<F, R>
impl<F, R> Unpin for EngineFailure<F, R>
impl<F, R> UnsafeUnpin for EngineFailure<F, R>where
R: UnsafeUnpin,
F: UnsafeUnpin,
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