pub enum ConnectionError {
__InvalidState,
ServerError(PgServerError),
UnexpectedResponse(String),
Scram(SCRAMError),
Io(Error),
Utf8Error(Utf8Error),
SslError(SslError),
ParseError(ParseError),
}
Variants§
__InvalidState
👎Deprecated: Use invalid_state!
Invalid state error, suggesting a logic error in code rather than a server or client failure.
Use the invalid_state!
macro instead which will print a backtrace.
ServerError(PgServerError)
Error returned by the server.
UnexpectedResponse(String)
The server sent something we didn’t expect
Scram(SCRAMError)
Error related to SCRAM authentication.
Io(Error)
I/O error encountered during connection operations.
Utf8Error(Utf8Error)
UTF-8 decoding error.
SslError(SslError)
SSL-related error.
ParseError(ParseError)
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)>
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<Error> for ConnectionError
impl From<Error> for ConnectionError
Source§impl From<ParseError> for ConnectionError
impl From<ParseError> for ConnectionError
Source§fn from(value: ParseError) -> Self
fn from(value: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<PgServerError> for ConnectionError
impl From<PgServerError> for ConnectionError
Source§fn from(value: PgServerError) -> Self
fn from(value: PgServerError) -> Self
Converts to this type from the input type.
Source§impl From<SCRAMError> for ConnectionError
impl From<SCRAMError> for ConnectionError
Source§fn from(value: SCRAMError) -> Self
fn from(value: SCRAMError) -> Self
Converts to this type from the input type.
Source§impl From<SslError> for ConnectionError
impl From<SslError> for ConnectionError
Source§impl From<String> for ConnectionError
impl From<String> for ConnectionError
Auto Trait Implementations§
impl Freeze for ConnectionError
impl !RefUnwindSafe for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl !UnwindSafe for ConnectionError
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
Source§impl<T> EncoderForExt for Twhere
T: ?Sized,
impl<T> EncoderForExt for Twhere
T: ?Sized,
Source§fn to_vec<F>(&self) -> Vec<u8> ⓘwhere
F: 'static,
Self: EncoderFor<F>,
fn to_vec<F>(&self) -> Vec<u8> ⓘwhere
F: 'static,
Self: EncoderFor<F>,
Convert this builder into a vector of bytes. This is generally
not the most efficient way to perform serialization.
Source§fn encode_buffer<F>(&self, buf: &mut [u8]) -> Result<usize, usize>where
F: 'static,
Self: EncoderFor<F>,
fn encode_buffer<F>(&self, buf: &mut [u8]) -> Result<usize, usize>where
F: 'static,
Self: EncoderFor<F>,
Encode this builder into a given buffer. If the buffer is
too small, the function will return the number of bytes
required to encode the builder.
Source§fn encode_buffer_uninit<'a, F>(
&self,
buf: &'a mut [MaybeUninit<u8>],
) -> Result<&'a mut [u8], usize>where
F: 'static,
Self: EncoderFor<F>,
fn encode_buffer_uninit<'a, F>(
&self,
buf: &'a mut [MaybeUninit<u8>],
) -> Result<&'a mut [u8], usize>where
F: 'static,
Self: EncoderFor<F>,
Encode this builder into a given buffer. If the buffer is
too small, the function will return the number of bytes
required to encode the builder.