#[non_exhaustive]pub enum ConfigurationError {
Show 15 variants
MissingEnvironmentVariable {
name: &'static str,
},
InvalidEnvironmentVariable {
name: &'static str,
},
EmptyDatabaseUrl,
MigrationDatabaseUrlRequired,
SharedProductionMigrationCredential,
InvalidDatabaseUrl,
ZeroMaximumConnections,
PoolMinimumExceedsMaximum,
ZeroDuration {
name: &'static str,
},
DurationTooLarge {
name: &'static str,
},
LockTimeoutNotBelowStatementTimeout,
PostgresTimeoutTooLarge {
name: &'static str,
},
LeaseTimingNotMicrosecondAligned {
name: &'static str,
},
LeaseDurationExceedsMaximumHorizon,
OutboxAttemptLeaseTooLong,
}Expand description
Invalid PostgreSQL provider configuration.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MissingEnvironmentVariable
A required environment variable was absent.
InvalidEnvironmentVariable
An environment variable was non-Unicode or used an unsupported value.
EmptyDatabaseUrl
A required connection URL was empty.
MigrationDatabaseUrlRequired
Production auto-migration omitted a dedicated credential.
Production migration and runtime credentials were exactly the same URL.
InvalidDatabaseUrl
The connection URL could not be parsed. The URL is intentionally omitted.
ZeroMaximumConnections
A pool with zero possible connections cannot make progress.
PoolMinimumExceedsMaximum
Minimum pool size exceeded maximum pool size.
ZeroDuration
A required timeout or lease duration was zero.
DurationTooLarge
A duration could not fit the signed microsecond database contract.
LockTimeoutNotBelowStatementTimeout
Lock timeout would not fire strictly before the statement timeout.
PostgresTimeoutTooLarge
A server-side timeout exceeded PostgreSQL’s signed millisecond range.
LeaseTimingNotMicrosecondAligned
Durable lease timing was not exactly representable as microseconds.
LeaseDurationExceedsMaximumHorizon
Initial leases exceeded the configured renewal safety horizon.
OutboxAttemptLeaseTooLong
Fixed outbox attempt lease exceeded the core five-minute bound.
Trait Implementations§
Source§impl Clone for ConfigurationError
impl Clone for ConfigurationError
Source§impl Debug for ConfigurationError
impl Debug for ConfigurationError
Source§impl Display for ConfigurationError
impl Display for ConfigurationError
impl Eq for ConfigurationError
Source§impl Error for ConfigurationError
impl Error for ConfigurationError
1.30.0 · 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 From<ConfigurationError> for StoreError
impl From<ConfigurationError> for StoreError
Source§fn from(source: ConfigurationError) -> Self
fn from(source: ConfigurationError) -> Self
Source§impl PartialEq for ConfigurationError
impl PartialEq for ConfigurationError
impl StructuralPartialEq for ConfigurationError
Auto Trait Implementations§
impl Forget for ConfigurationError
impl Freeze for ConfigurationError
impl Move for ConfigurationError
impl RefUnwindSafe for ConfigurationError
impl Send for ConfigurationError
impl Sync for ConfigurationError
impl Unpin for ConfigurationError
impl UnsafeUnpin for ConfigurationError
impl UnwindSafe for ConfigurationError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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