mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-30 05:11:13 +00:00
15 lines
303 B
Rust
15 lines
303 B
Rust
use crate::Runtime;
|
|
|
|
pub trait Close<Rt>
|
|
where
|
|
Rt: Runtime,
|
|
{
|
|
#[cfg(feature = "async")]
|
|
fn close(self) -> futures_util::future::BoxFuture<'static, crate::Result<()>>
|
|
where
|
|
Rt: crate::Async;
|
|
}
|
|
|
|
// TODO: impl Close for Pool { ... }
|
|
// TODO: impl<C: Connection> Close for C { ... }
|