Require Acquire::Connection to be Send

This commit is contained in:
Jonas Platte 2021-01-26 21:00:21 +01:00 committed by Ryan Leckey
parent df6a2a2eb6
commit 77238108cf

View file

@ -8,7 +8,7 @@ use std::ops::{Deref, DerefMut};
pub trait Acquire<'c> { pub trait Acquire<'c> {
type Database: Database; type Database: Database;
type Connection: Deref<Target = <Self::Database as Database>::Connection> + DerefMut; type Connection: Deref<Target = <Self::Database as Database>::Connection> + DerefMut + Send;
fn acquire(self) -> BoxFuture<'c, Result<Self::Connection, Error>>; fn acquire(self) -> BoxFuture<'c, Result<Self::Connection, Error>>;