pub enum RedDBError {
Show 14 variants
InvalidConfig(String),
SchemaVersionMismatch {
expected: u32,
found: u32,
},
FeatureNotEnabled(String),
NotFound(String),
ReadOnly(String),
InvalidOperation(String),
Engine(String),
Catalog(String),
Query(String),
Validation {
message: String,
validation: Value,
},
Io(Error),
VersionUnavailable,
QuotaExceeded(String),
Internal(String),
}Variants§
InvalidConfig(String)
SchemaVersionMismatch
FeatureNotEnabled(String)
NotFound(String)
ReadOnly(String)
InvalidOperation(String)
Engine(String)
Catalog(String)
Query(String)
Validation
Io(Error)
QuotaExceeded(String)
Operator-pinned cap exceeded (PLAN.md Phase 4.1). The string
payload should follow the quota_exceeded:<limit_name>:<current>:<max>
shape so HTTP / wire surfaces can map to the right status
(507 for storage, 429 for rate, 504 for duration, 413 for
payload).
Internal(String)
Trait Implementations§
Source§impl Debug for RedDBError
impl Debug for RedDBError
Source§impl Display for RedDBError
impl Display for RedDBError
Source§impl Error for RedDBError
impl Error for RedDBError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DatabaseError> for RedDBError
impl From<DatabaseError> for RedDBError
Source§fn from(err: DatabaseError) -> RedDBError
fn from(err: DatabaseError) -> RedDBError
Converts to this type from the input type.
Source§impl From<DevXError> for RedDBError
impl From<DevXError> for RedDBError
Source§fn from(err: DevXError) -> RedDBError
fn from(err: DevXError) -> RedDBError
Converts to this type from the input type.
Source§impl From<Error> for RedDBError
impl From<Error> for RedDBError
Source§fn from(err: Error) -> RedDBError
fn from(err: Error) -> RedDBError
Converts to this type from the input type.
Source§impl From<StoreError> for RedDBError
impl From<StoreError> for RedDBError
Source§fn from(err: StoreError) -> RedDBError
fn from(err: StoreError) -> RedDBError
Converts to this type from the input type.
Source§impl From<TxError> for RedDBError
impl From<TxError> for RedDBError
Source§fn from(err: TxError) -> RedDBError
fn from(err: TxError) -> RedDBError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RedDBError
impl !RefUnwindSafe for RedDBError
impl Send for RedDBError
impl Sync for RedDBError
impl Unpin for RedDBError
impl UnsafeUnpin for RedDBError
impl !UnwindSafe for RedDBError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
Converts
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>
Converts
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request