pub struct DiagnosticCause { /* private fields */ }Expand description
Only classified source facts are accepted. Raw driver Display/Debug is absent.
Implementations§
Source§impl DiagnosticCause
impl DiagnosticCause
pub fn new(stage: DiagnosticStage, code: DiagnosticCode) -> Self
pub fn with_object(self, object: DiagnosticObject) -> Self
pub fn with_driver_details(self, details: DiagnosticDriverDetails) -> Self
pub fn with_input_location(self, location: DiagnosticInputLocation) -> Self
pub fn with_io(self, error: &Error) -> Self
pub fn with_database_code(self, code: u32, sqlstate: Option<&str>) -> Self
Trait Implementations§
Source§impl Debug for DiagnosticCause
impl Debug for DiagnosticCause
Auto Trait Implementations§
impl Freeze for DiagnosticCause
impl RefUnwindSafe for DiagnosticCause
impl Send for DiagnosticCause
impl Sync for DiagnosticCause
impl Unpin for DiagnosticCause
impl UnsafeUnpin for DiagnosticCause
impl UnwindSafe for DiagnosticCause
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