mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 14:34:19 +00:00
Require Acquire::Connection to be Send
This commit is contained in:
parent
df6a2a2eb6
commit
77238108cf
1 changed files with 1 additions and 1 deletions
|
@ -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>>;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue