pub struct ErrorReportWithLevel { /* private fields */ }
Implementations§
Source§impl ErrorReportWithLevel
impl ErrorReportWithLevel
Sourcepub fn level(&self) -> PgLogLevel
pub fn level(&self) -> PgLogLevel
Returns the logging level of this error report
Sourcepub fn sql_error_code(&self) -> PgSqlErrorCode
pub fn sql_error_code(&self) -> PgSqlErrorCode
Returns the sql error code of this error report
Sourcepub fn detail(&self) -> Option<&str>
pub fn detail(&self) -> Option<&str>
Returns the detail line of this error report, if there is one
Sourcepub fn detail_with_backtrace(&self) -> Option<String>
pub fn detail_with_backtrace(&self) -> Option<String>
Get the detail line with backtrace. If backtrace is not available, it will just return the detail.
Sourcepub fn file(&self) -> &str
pub fn file(&self) -> &str
Returns the name of the source file that generated this error report
Sourcepub fn line_number(&self) -> u32
pub fn line_number(&self) -> u32
Returns the line number of the source file that generated this error report
Sourcepub fn function_name(&self) -> Option<&str>
pub fn function_name(&self) -> Option<&str>
Returns the name of the function that generated this error report, if we were able to figure it out
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ErrorReportWithLevel
impl RefUnwindSafe for ErrorReportWithLevel
impl Send for ErrorReportWithLevel
impl Sync for ErrorReportWithLevel
impl Unpin for ErrorReportWithLevel
impl UnwindSafe for ErrorReportWithLevel
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