pub struct ServerError {
pub number: i32,
pub state: u8,
pub severity: u8,
pub message: String,
pub server: String,
pub procedure: String,
pub line: u32,
}Expand description
An error or an informational message from the server.
The two share a wire format; only the token byte and the severity separate
a failure from a print statement.
Fields§
§number: i32§state: u8§severity: u8SQL Server calls this the class; raiserror calls it the severity.
Anything above 10 is a real error.
message: String§server: String§procedure: String§line: u32Implementations§
Source§impl ServerError
impl ServerError
pub fn into_error(self, sql: Option<&str>) -> Error
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerError
impl Debug for ServerError
Source§impl Default for ServerError
impl Default for ServerError
Source§fn default() -> ServerError
fn default() -> ServerError
Returns the “default value” for a type. Read more
impl Eq for ServerError
Source§impl PartialEq for ServerError
impl PartialEq for ServerError
impl StructuralPartialEq for ServerError
Auto Trait Implementations§
impl Freeze for ServerError
impl RefUnwindSafe for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl UnsafeUnpin 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