[−][src]Struct msql_srv::MysqlIntermediary
A server that speaks the MySQL/MariaDB protocol, and can delegate client commands to a backend
that implements MysqlShim
.
Implementations
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.
Auto Trait Implementations
impl<B, R, W> RefUnwindSafe for MysqlIntermediary<B, R, W> where
B: RefUnwindSafe,
R: RefUnwindSafe,
W: RefUnwindSafe,
B: RefUnwindSafe,
R: RefUnwindSafe,
W: RefUnwindSafe,
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,
impl<B, R, W> Unpin for MysqlIntermediary<B, R, W> where
B: Unpin,
R: Unpin,
W: Unpin,
B: Unpin,
R: Unpin,
W: Unpin,
impl<B, R, W> UnwindSafe for MysqlIntermediary<B, R, W> where
B: UnwindSafe,
R: UnwindSafe,
W: UnwindSafe,
B: UnwindSafe,
R: UnwindSafe,
W: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,