#[non_exhaustive]
pub enum Error {
Show 21 variants
AsyncChannelError,
DomExceptionError(JsValue),
DomExceptionNotFound,
EventTargetNotFound,
IndexCreationFailed(JsValue),
IndexOpenFailed(JsValue),
IndexedDbDeleteFailed(JsValue),
IndexedDbNotFound(JsValue),
IndexedDbNotSupported(JsValue),
IndexedDbOpenFailed(JsValue),
IndexedDbRequestError(JsValue),
IndexedDbUpgradeFailed(JsValue),
KeyRangeError(JsValue),
ObjectStoreCreationFailed(JsValue),
ObjectStoreOpenFailed(JsValue),
TransactionCommitFailed(JsValue),
TransactionExecutionFailed(JsValue),
TransactionNotFound,
TransactionOpenFailed(JsValue),
UnexpectedJsType,
WindowNotFound,
}
Expand description
Error type for rexie
crate
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
AsyncChannelError
Error when receiving message from async channel
DomExceptionError(JsValue)
Error when fetching DOM exception
DomExceptionNotFound
DOM Exception is none
EventTargetNotFound
Event target is none
IndexCreationFailed(JsValue)
Index creation failed
IndexOpenFailed(JsValue)
Index open failed
IndexedDbDeleteFailed(JsValue)
Failed to delete indexed db
IndexedDbNotFound(JsValue)
Indexed db not found
IndexedDbNotSupported(JsValue)
Indexed db not supported
IndexedDbOpenFailed(JsValue)
Failed to open indexed db
IndexedDbRequestError(JsValue)
Failed to execute indexed db request
IndexedDbUpgradeFailed(JsValue)
Failed to execute indexed db upgrade
KeyRangeError(JsValue)
Key range error
ObjectStoreCreationFailed(JsValue)
Object store creation failed
ObjectStoreOpenFailed(JsValue)
Failed to open object store
TransactionCommitFailed(JsValue)
Failed to commit indexed db transaction
TransactionExecutionFailed(JsValue)
Failed to execute indexed db transaction
TransactionNotFound
Transaction is none
TransactionOpenFailed(JsValue)
failed to open db transaction
UnexpectedJsType
Unexpected JS type
WindowNotFound
window object is none
Trait Implementations
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl !Send for Error
impl !Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more