pub struct ServerError {
pub number: i32,
pub state: u8,
pub class: u8,
pub message: String,
pub server: String,
pub procedure: String,
pub line: i32,
}Expand description
Server error message.
Fields§
§number: i32Error number.
state: u8Error state.
class: u8Error severity class.
message: StringError message text.
server: StringServer name.
procedure: StringProcedure name.
line: i32Line number.
Implementations§
Source§impl ServerError
impl ServerError
Sourcepub fn decode(src: &mut impl Buf) -> Result<Self, ProtocolError>
pub fn decode(src: &mut impl Buf) -> Result<Self, ProtocolError>
Decode an ERROR token from bytes.
Sourcepub const fn is_batch_abort(&self) -> bool
pub const fn is_batch_abort(&self) -> bool
Check if this error indicates the batch was aborted (severity >= 16).
Trait Implementations§
Source§impl Clone for ServerError
impl Clone for ServerError
Source§fn clone(&self) -> ServerError
fn clone(&self) -> ServerError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServerError
impl RefUnwindSafe for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl UnwindSafe for ServerError
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