Enum convergence::connection::ConnectionError [−][src]
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.
Tuple Fields of Protocol
ErrorResponse(ErrorResponse)
A Postgres error containing a SqlState code and message occurred. May result in connection termination depending on the severity.
Tuple Fields of ErrorResponse
The connection was closed. This always implies connection termination.
Trait Implementations
Performs the conversion.
Performs the conversion.