#[non_exhaustive]pub enum ConnectError {
Construct {
key: KeyName,
module: ModuleName,
reason: FailureReason,
},
Readiness {
key: KeyName,
module: ModuleName,
attempts: u32,
reason: FailureReason,
},
Hook {
hook: HookKind,
key: KeyName,
reason: FailureReason,
},
}Expand description
A failure in the connect phase, on StartupError::Connect from connect and on
LoadError::Connect from load.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Construct
Readiness
How the last attempt ended, TimedOut { limit: Item } for the whole check, or Errored
holding a Permanent RuntimeShutDown for a backoff or a bound
the runtime refused (§9.3).
module is the module the checked binding belongs to, so two keyed modules of one type
that bind one key (StoreModule<Sqlite> @ Primary and @ Replica) read apart.
Hook
Trait Implementations§
Source§impl Debug for ConnectError
impl Debug for ConnectError
Source§impl Display for ConnectError
impl Display for ConnectError
Source§impl Error for ConnectError
impl Error for ConnectError
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<ConnectError> for StartupError
impl From<ConnectError> for StartupError
Source§fn from(e: ConnectError) -> Self
fn from(e: ConnectError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ConnectError
impl !UnwindSafe for ConnectError
impl Forget for ConnectError
impl Freeze for ConnectError
impl Move for ConnectError
impl Send for ConnectError
impl Sync for ConnectError
impl Unpin for ConnectError
impl UnsafeUnpin for ConnectError
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