pub enum PostgresWriteError {
NoWhereProvided,
InsertValueCountMismatch,
UniqueConstraintViolation(String, String),
NotNullConstraintViolation(String),
PermissionDenied(String),
NoRows,
Unknown(Error),
}Expand description
Errors that may occur when writing to Postgres.
Variants§
NoWhereProvided
InsertValueCountMismatch
UniqueConstraintViolation(String, String)
NotNullConstraintViolation(String)
PermissionDenied(String)
NoRows
Unknown(Error)
Implementations§
Source§impl PostgresWriteError
impl PostgresWriteError
pub fn from_pg_err(err: Error) -> PostgresWriteError
Trait Implementations§
Source§impl Debug for PostgresWriteError
impl Debug for PostgresWriteError
Source§impl From<Error> for PostgresWriteError
impl From<Error> for PostgresWriteError
Source§impl From<PostgresWriteError> for RouteError
impl From<PostgresWriteError> for RouteError
Source§fn from(value: PostgresWriteError) -> Self
fn from(value: PostgresWriteError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PostgresWriteError
impl !RefUnwindSafe for PostgresWriteError
impl Send for PostgresWriteError
impl Sync for PostgresWriteError
impl Unpin for PostgresWriteError
impl !UnwindSafe for PostgresWriteError
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