Enum convergence::connection::ConnectionError
source · pub enum ConnectionError {
Protocol(ProtocolError),
ErrorResponse(ErrorResponse),
ConnectionClosed,
}
Expand description
Describes an error that may or may not result in the termination of a connection.
Variants§
Protocol(ProtocolError)
A protocol error was encountered, e.g. an invalid message for a connection’s current state.
ErrorResponse(ErrorResponse)
A Postgres error containing a SqlState code and message occurred. May result in connection termination depending on the severity.
ConnectionClosed
The connection was closed. This always implies connection termination.
Trait Implementations§
source§impl Debug for ConnectionError
impl Debug for ConnectionError
source§impl Display for ConnectionError
impl Display for ConnectionError
source§impl Error for ConnectionError
impl Error for ConnectionError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ErrorResponse> for ConnectionError
impl From<ErrorResponse> for ConnectionError
source§fn from(source: ErrorResponse) -> Self
fn from(source: ErrorResponse) -> Self
Converts to this type from the input type.
source§impl From<ProtocolError> for ConnectionError
impl From<ProtocolError> for ConnectionError
source§fn from(source: ProtocolError) -> Self
fn from(source: ProtocolError) -> Self
Converts to this type from the input type.