Struct msql_srv::MysqlIntermediary
[−]
[src]
pub struct MysqlIntermediary<B, R: Read, W: Write> { /* fields omitted */ }
A server that speaks the MySQL/MariaDB protocol, and can delegate client commands to a backend
that implements MysqlShim
.
Methods
impl<B: MysqlShim<TcpStream>> MysqlIntermediary<B, TcpStream, TcpStream>
[src]
fn run_on_tcp(shim: B, stream: TcpStream) -> Result<()>
[src]
Create a new server over a TCP stream and process client commands until the client
disconnects or an error occurs. See also
MysqlIntermediary::run_on
.
impl<B: MysqlShim<S>, S: Read + Write + Clone> MysqlIntermediary<B, S, S>
[src]
fn run_on_stream(shim: B, stream: S) -> Result<()>
[src]
Create a new server over a two-way stream and process client commands until the client
disconnects or an error occurs. See also
MysqlIntermediary::run_on
.