deadpool_postgres

Type Alias PoolError

Source
pub type PoolError = PoolError<Error>;
Expand description

Type alias for using deadpool::managed::PoolError with tokio_postgres.

Aliased Type§

enum PoolError {
    Timeout(TimeoutType),
    Backend(Error),
    Closed,
    NoRuntimeSpecified,
    PostCreateHook(HookError<Error>),
    PreRecycleHook(HookError<Error>),
    PostRecycleHook(HookError<Error>),
}

Variants§

§

Timeout(TimeoutType)

Timeout happened.

§

Backend(Error)

Backend reported an error.

§

Closed

Pool has been closed.

§

NoRuntimeSpecified

No Runtime was specified.

§

PostCreateHook(HookError<Error>)

A post_create hook reported an error.

§

PreRecycleHook(HookError<Error>)

A pre_recycle hook reported an error.

§

PostRecycleHook(HookError<Error>)

A post_recycle hook reported an error.

Trait Implementations

Source§

impl<E> Debug for PoolError<E>
where E: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<E> Display for PoolError<E>
where E: Display,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<E> Error for PoolError<E>
where E: Error + 'static,

Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl<E> From<E> for PoolError<E>

Source§

fn from(e: E) -> PoolError<E>

Converts to this type from the input type.