pub struct ServerError<'a>(/* private fields */);Expand description
ErrorResponse and NoticeResponse retain every field, including future fields.
Implementations§
Source§impl<'a> ServerError<'a>
impl<'a> ServerError<'a>
Sourcepub fn into_owned(self) -> OwnedServerError
pub fn into_owned(self) -> OwnedServerError
Copy every field out of the connection’s buffer in one allocation.
pub fn fields(self) -> impl Iterator<Item = (u8, &'a str)>
pub fn get(self, tag: u8) -> Option<&'a str>
pub fn code(self) -> &'a str
pub fn message(self) -> &'a str
pub fn severity(self) -> Option<&'a str>
pub fn detail(self) -> Option<&'a str>
pub fn hint(self) -> Option<&'a str>
pub fn internal_position(self) -> Option<&'a str>
pub fn internal_query(self) -> Option<&'a str>
pub fn context(self) -> Option<&'a str>
pub fn schema(self) -> Option<&'a str>
pub fn table(self) -> Option<&'a str>
pub fn column(self) -> Option<&'a str>
pub fn data_type(self) -> Option<&'a str>
pub fn constraint(self) -> Option<&'a str>
pub fn file(self) -> Option<&'a str>
pub fn line(self) -> Option<&'a str>
pub fn routine(self) -> Option<&'a str>
pub fn position(self) -> Option<&'a str>
Trait Implementations§
Source§impl<'a> Clone for ServerError<'a>
impl<'a> Clone for ServerError<'a>
impl<'a> Copy for ServerError<'a>
Auto Trait Implementations§
impl<'a> Freeze for ServerError<'a>
impl<'a> RefUnwindSafe for ServerError<'a>
impl<'a> Send for ServerError<'a>
impl<'a> Sync for ServerError<'a>
impl<'a> Unpin for ServerError<'a>
impl<'a> UnsafeUnpin for ServerError<'a>
impl<'a> UnwindSafe for ServerError<'a>
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