MCPcopy Create free account
hub / github.com/HFQR/xitca-web / Error

Class Error

postgres/src/error.rs:37–37  ·  view source on GitHub ↗

public facing error type. providing basic format and display based error handling. for typed based error handling runtime type cast is needed with the help of other public error types offered by this module. # Example ```rust use xitca_postgres::error::{DriverDown, Error}; fn is_driver_down(e: Error) -> bool { // downcast error to DriverDown error type to check if client driver is gone. e.downc

Source from the content-addressed store, hash-verified

35/// }
36/// ```
37pub struct Error(Box<dyn error::Error + Send + Sync>);
38
39impl Error {
40 pub fn is_driver_down(&self) -> bool {

Callers 2

poll_readyMethod · 0.50
poll_ready_onceMethod · 0.50

Implementers 1

error.rspostgres/src/error.rs

Calls

no outgoing calls

Tested by

no test coverage detected