pub trait Resource {
    type Output;
    type Error;
    fn try_create(&self) -> Result<Self::Output, Self::Error>;
}
Expand description

A factory which produces a resource for use with ResourcePool.

Associated Types

The type of the resource to be produced.

An error type.

Required methods

Constructor for the resource.

Implementors