Struct tokio_postgres::error::SqlState
[−]
[src]
pub struct SqlState(_);
A SQLSTATE error code
Methods
impl SqlState[src]
fn from_code(s: &str) -> SqlState[src]
Creates a SqlState from its error code.
fn code(&self) -> &str[src]
Returns the error code corresponding to the SqlState.