Closed pjenvey closed 11 months ago
What's the use case for this?
Great question, which in retrospect, makes me consider this issue likely invalid.
A use case for deadpool's pool
method is the ability to access the connection Pool
's Manager
instance, which is somewhat similar to r2d2::ManageConnection
. This could be used to e.g. retrieve a Pool level configuration stored on the Manager
instance from the connection itself.
r2d2::Pool
doesn't currently provide access to its manager
like this, so this use case isn't applicable to r2d2 AFAICT.
I'd like to see a concrete use case before adding a feature.
A method returning the parent
Pool
of aPooledConnection
could be a useful addition. e.g. deadpool supports this.