pub enum PlatformStorageError {
Show 13 variants
Pool(PoolError),
DbConnection(Error),
PoolNeedsConnection,
PoolRequiresPath,
SqlCipherNotLoaded,
SqlCipherKeyIncorrect,
DatabaseLocked,
DieselResult(Error),
NotFound(NotFound),
Io(Error),
FromHex(FromHexError),
DieselConnect(ConnectionError),
Boxed(BoxDynError),
}Variants§
Pool(PoolError)
Pool error.
Database connection pool error. Retryable.
DbConnection(Error)
DB connection error.
R2D2 connection manager error (e.g. a failed on_acquire while
establishing a connection). Transient — retryable.
PoolNeedsConnection
Pool needs connection.
Pool must reconnect before use. Retryable.
PoolRequiresPath
Pool requires path.
DB pool requires a persistent file path. Not retryable.
SqlCipherNotLoaded
SQLCipher not loaded.
Encryption key given but SQLCipher not available. Retryable.
SqlCipherKeyIncorrect
SQLCipher key incorrect.
PRAGMA key or salt has wrong value. Not retryable.
DatabaseLocked
Database locked.
Database file is locked by another process. Retryable.
DieselResult(Error)
Diesel result error.
Database query error. May be retryable.
NotFound(NotFound)
Not found.
Record not found in storage. Not retryable.
Io(Error)
I/O error.
File system I/O error. Retryable.
FromHex(FromHexError)
Hex decode error.
Failed to decode hex string. Not retryable.
DieselConnect(ConnectionError)
Diesel connection error.
Failed to establish connection. Retryable.
Boxed(BoxDynError)
Boxed error.
Wrapped dynamic error. Not retryable.
Trait Implementations§
Source§impl Debug for PlatformStorageError
impl Debug for PlatformStorageError
Source§impl Display for PlatformStorageError
impl Display for PlatformStorageError
Source§impl Error for PlatformStorageError
impl Error for PlatformStorageError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl ErrorCode for PlatformStorageError
impl ErrorCode for PlatformStorageError
Source§fn error_code(&self) -> &'static str
fn error_code(&self) -> &'static str
Source§impl From<Box<dyn Error + Send + Sync>> for PlatformStorageError
impl From<Box<dyn Error + Send + Sync>> for PlatformStorageError
Source§fn from(source: BoxDynError) -> Self
fn from(source: BoxDynError) -> Self
Source§impl From<ConnectionError> for PlatformStorageError
impl From<ConnectionError> for PlatformStorageError
Source§impl From<Error> for PlatformStorageError
impl From<Error> for PlatformStorageError
Source§impl From<Error> for PlatformStorageError
impl From<Error> for PlatformStorageError
Source§impl From<Error> for PlatformStorageError
impl From<Error> for PlatformStorageError
Source§impl From<Error> for PlatformStorageError
impl From<Error> for PlatformStorageError
Source§impl From<FromHexError> for PlatformStorageError
impl From<FromHexError> for PlatformStorageError
Source§impl From<NotFound> for PlatformStorageError
impl From<NotFound> for PlatformStorageError
Source§impl From<PlatformStorageError> for ConnectionError
impl From<PlatformStorageError> for ConnectionError
Source§fn from(source: PlatformStorageError) -> Self
fn from(source: PlatformStorageError) -> Self
Source§impl From<PlatformStorageError> for StorageError
impl From<PlatformStorageError> for StorageError
Source§fn from(source: PlatformStorageError) -> Self
fn from(source: PlatformStorageError) -> Self
Source§impl RetryableError for PlatformStorageError
impl RetryableError for PlatformStorageError
fn is_retryable(&self) -> bool
Auto Trait Implementations§
impl Freeze for PlatformStorageError
impl !RefUnwindSafe for PlatformStorageError
impl Send for PlatformStorageError
impl Sync for PlatformStorageError
impl Unpin for PlatformStorageError
impl UnsafeUnpin for PlatformStorageError
impl !UnwindSafe for PlatformStorageError
Blanket Implementations§
§impl<T> AggregateExpressionMethods for T
impl<T> AggregateExpressionMethods for T
§fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
DISTINCT modifier for aggregate functions Read more§fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
ALL modifier for aggregate functions Read more§fn aggregate_filter<P>(self, f: P) -> Self::Outputwhere
P: AsExpression<Bool>,
Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,
fn aggregate_filter<P>(self, f: P) -> Self::Outputwhere
P: AsExpression<Bool>,
Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,
§fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<T> IntoSql for T
impl<T> IntoSql for T
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].