pub enum ElefantClientError {
IoError(Error),
PostgresMessageParseError(PostgresMessageParseError),
UnexpectedBackendMessage(String),
PostgresError(String),
UnsupportedFieldType {
desired_rust_type: &'static str,
postgres_field: FieldDescription,
},
DataTypeParseError {
original_error: Box<dyn Error + Sync + Send>,
column_index: usize,
},
NoResultsReturned,
UnexpectedNullValue {
postgres_field: FieldDescription,
},
NotEnoughColumns {
desired: usize,
actual: usize,
},
UnsupportedAuthenticationMethod(String),
TlsError(String),
BatchQueryUnexpectedEnd,
}Variants§
IoError(Error)
PostgresMessageParseError(PostgresMessageParseError)
UnexpectedBackendMessage(String)
PostgresError(String)
UnsupportedFieldType
DataTypeParseError
NoResultsReturned
UnexpectedNullValue
Fields
§
postgres_field: FieldDescriptionNotEnoughColumns
UnsupportedAuthenticationMethod(String)
TlsError(String)
BatchQueryUnexpectedEnd
Trait Implementations§
Source§impl Debug for ElefantClientError
impl Debug for ElefantClientError
Source§impl Display for ElefantClientError
impl Display for ElefantClientError
Source§impl Error for ElefantClientError
impl Error for ElefantClientError
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<Error> for ElefantClientError
impl From<Error> for ElefantClientError
Source§impl From<ReplicationError> for ElefantClientError
impl From<ReplicationError> for ElefantClientError
Source§fn from(e: ReplicationError) -> Self
fn from(e: ReplicationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ElefantClientError
impl !UnwindSafe for ElefantClientError
impl Freeze for ElefantClientError
impl Send for ElefantClientError
impl Sync for ElefantClientError
impl Unpin for ElefantClientError
impl UnsafeUnpin for ElefantClientError
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