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]
pub fn run_on_tcp(shim: B, stream: TcpStream) -> Result<(), B::Error>
[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]
pub fn run_on_stream(shim: B, stream: S) -> Result<(), B::Error>
[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
.
impl<B: MysqlShim<W>, R: Read, W: Write> MysqlIntermediary<B, R, W>
[src]
pub fn run_on(shim: B, reader: R, writer: W) -> Result<(), B::Error>
[src]
Create a new server over two one-way channels and process client commands until the client disconnects or an error occurs.
Trait Implementations
Auto Trait Implementations
impl<B, R, W> Send for MysqlIntermediary<B, R, W> where
B: Send,
R: Send,
W: Send,
B: Send,
R: Send,
W: Send,
impl<B, R, W> Sync for MysqlIntermediary<B, R, W> where
B: Sync,
R: Sync,
W: Sync,
B: Sync,
R: Sync,
W: Sync,