Rust

Crate root

Module
What utopia_pools defines at its root.

Modules

Contents

use utopia_pools::Error;
Rust
pub enum Error

Why a pool operation failed.

use utopia_pools::Resource;
Rust
pub trait Resource: Send + Sync + 'static

What a pooled resource does when the pool needs it to: recover after failed work, and keep itself alive while idle. Both default to nothing: a resource that cannot recover is discarded after a failure.

Rust
pub type BoxError = Box<dyn std::error::Error + Send + Sync>

Any error, as init and Resource::tick return them.