pub enum PgError {
Connect(String),
Auth(String),
Tls(String),
Tunnel(String),
TunnelSourceMissing(String),
CursorExpired(String),
PoolExhausted(usize, usize),
Driver(Error),
}Expand description
Errors surfaced from the Postgres explorer layer.
Variants§
Connect(String)
Auth(String)
Tls(String)
Tunnel(String)
TunnelSourceMissing(String)
Tunnel was requested but the referenced SSH connection isn’t registered (or has been closed).
CursorExpired(String)
The cursor referenced by a fetch_page / close_query call no longer exists. Sprint 6: now scoped to the session — only fires if the same session opened a new cursor in between, or the session was released.
PoolExhausted(usize, usize)
The pool is at max_size and all connections are currently
leased to other sessions. Caller should wait and retry, or
release another session.
Driver(Error)
Trait Implementations§
Source§impl Error for PgError
impl Error for PgError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for PgError
impl !RefUnwindSafe for PgError
impl Send for PgError
impl Sync for PgError
impl Unpin for PgError
impl UnsafeUnpin for PgError
impl !UnwindSafe for PgError
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