pub enum ConnectError<ConnectorError, TlsError = Infallible, AuthenticationError = Infallible> {
Connector(ConnectorError),
Tls(TlsError),
Authentication(AuthenticationError),
Startup(StartupParameterError),
Protocol(Error),
}Expand description
Failure while establishing a client-role connection, distinct from BuildError.
Variants§
Connector(ConnectorError)
The application-supplied connector failed.
Tls(TlsError)
The reloadable TLS provider or handshake failed.
Authentication(AuthenticationError)
The application authentication policy failed.
Startup(StartupParameterError)
Structured startup values were invalid before network establishment.
Protocol(Error)
PostgreSQL framing, startup, authentication, or readiness failed.
Trait Implementations§
Source§impl<ConnectorError: Debug, TlsError: Debug, AuthenticationError: Debug> Debug for ConnectError<ConnectorError, TlsError, AuthenticationError>
impl<ConnectorError: Debug, TlsError: Debug, AuthenticationError: Debug> Debug for ConnectError<ConnectorError, TlsError, AuthenticationError>
Source§impl<ConnectorError: Display, TlsError: Display, AuthenticationError: Display> Display for ConnectError<ConnectorError, TlsError, AuthenticationError>
impl<ConnectorError: Display, TlsError: Display, AuthenticationError: Display> Display for ConnectError<ConnectorError, TlsError, AuthenticationError>
Source§impl<ConnectorError, TlsError, AuthenticationError> Error for ConnectError<ConnectorError, TlsError, AuthenticationError>
impl<ConnectorError, TlsError, AuthenticationError> Error for ConnectError<ConnectorError, TlsError, AuthenticationError>
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()
Auto Trait Implementations§
impl<ConnectorError, TlsError = Infallible, AuthenticationError = Infallible> !RefUnwindSafe for ConnectError<ConnectorError, TlsError, AuthenticationError>
impl<ConnectorError, TlsError = Infallible, AuthenticationError = Infallible> !UnwindSafe for ConnectError<ConnectorError, TlsError, AuthenticationError>
impl<ConnectorError, TlsError, AuthenticationError> Freeze for ConnectError<ConnectorError, TlsError, AuthenticationError>
impl<ConnectorError, TlsError, AuthenticationError> Send for ConnectError<ConnectorError, TlsError, AuthenticationError>
impl<ConnectorError, TlsError, AuthenticationError> Sync for ConnectError<ConnectorError, TlsError, AuthenticationError>
impl<ConnectorError, TlsError, AuthenticationError> Unpin for ConnectError<ConnectorError, TlsError, AuthenticationError>
impl<ConnectorError, TlsError, AuthenticationError> UnsafeUnpin for ConnectError<ConnectorError, TlsError, AuthenticationError>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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