pub enum FdbError {
Config {
reason: ConfigErrorReason,
},
Setup {
reason: FdbSetupErrorReason,
},
Query {
reason: FdbQueryErrorReason,
},
Health {
reason: FdbHealthErrorReason,
},
Tenant {
reason: TenantErrorReason,
},
}Expand description
Top-level FoundationDB infrastructure error.
Higher-level kits and apps should wrap or compose this error rather than returning it directly from public business surfaces.
Variants§
Config
Validated connector configuration could not be constructed.
Fields
§
reason: ConfigErrorReasonStable configuration failure reason.
Setup
FoundationDB client or database setup failed.
Fields
§
reason: FdbSetupErrorReasonStable setup failure reason.
Query
A low-level query primitive failed.
Fields
§
reason: FdbQueryErrorReasonStable query failure reason.
Health
Connector health verification failed.
Fields
§
reason: FdbHealthErrorReasonStable health failure reason.
Tenant
Tenant access, metadata, or administration failed.
Fields
§
reason: TenantErrorReasonStable tenant failure reason.
Trait Implementations§
impl Copy for FdbError
impl Eq for FdbError
Source§impl Error for FdbError
impl Error for FdbError
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()
impl StructuralPartialEq for FdbError
Auto Trait Implementations§
impl Freeze for FdbError
impl RefUnwindSafe for FdbError
impl Send for FdbError
impl Sync for FdbError
impl Unpin for FdbError
impl UnsafeUnpin for FdbError
impl UnwindSafe for FdbError
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