pub struct PgServerError {
pub code: PgError,
pub severity: PgErrorSeverity,
pub message: String,
pub extra: HashMap<PgServerErrorField, String>,
}Expand description
A fully-qualified Postgres wire error message.
Fields§
§code: PgError§severity: PgErrorSeverity§message: String§extra: HashMap<PgServerErrorField, String>Implementations§
Trait Implementations§
Source§impl Debug for PgServerError
impl Debug for PgServerError
Source§impl Display for PgServerError
impl Display for PgServerError
Source§impl Error for PgServerError
impl Error for PgServerError
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<ErrorResponse<'_>> for PgServerError
impl From<ErrorResponse<'_>> for PgServerError
Source§fn from(error: ErrorResponse<'_>) -> Self
fn from(error: ErrorResponse<'_>) -> Self
Converts to this type from the input type.
Source§impl From<NoticeResponse<'_>> for PgServerError
impl From<NoticeResponse<'_>> for PgServerError
Source§fn from(error: NoticeResponse<'_>) -> Self
fn from(error: NoticeResponse<'_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PgServerError
impl RefUnwindSafe for PgServerError
impl Send for PgServerError
impl Sync for PgServerError
impl Unpin for PgServerError
impl UnwindSafe for PgServerError
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.