[][src]Struct msql_srv::MysqlIntermediary

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.

Auto Trait Implementations

impl<B, R, W> Send for MysqlIntermediary<B, R, W> where
    B: Send,
    R: Send,
    W: Send

impl<B, R, W> Sync for MysqlIntermediary<B, R, W> where
    B: Sync,
    R: Sync,
    W: Sync

impl<B, R, W> Unpin for MysqlIntermediary<B, R, W> where
    B: Unpin,
    R: Unpin,
    W: Unpin

impl<B, R, W> UnwindSafe for MysqlIntermediary<B, R, W> where
    B: UnwindSafe,
    R: UnwindSafe,
    W: UnwindSafe

impl<B, R, W> RefUnwindSafe for MysqlIntermediary<B, R, W> where
    B: RefUnwindSafe,
    R: RefUnwindSafe,
    W: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self