mysql_async/conn/routines/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use futures_core::future::BoxFuture;

use crate::Conn;

pub use self::{change_user::*, exec::*, next_set::*, ping::*, prepare::*, query::*, reset::*};

mod change_user;
mod exec;
mod next_set;
mod ping;
mod prepare;
mod query;
mod reset;

mod helpers;

/// Connection will be broken if this operation isn't finished.
pub trait Routine<T> {
    fn call<'a>(&'a mut self, conn: &'a mut Conn) -> BoxFuture<'a, crate::Result<T>>;
}