Trait mysql_connector::connection::Socket

source ·
pub trait Socket: Sized + AsyncRead + AsyncWrite + Unpin + Debug {
    // Required method
    async fn connect(
        host: &str,
        port: u16,
        nodelay: bool
    ) -> Result<Self, Error>;
}

Required Methods§

source

async fn connect(host: &str, port: u16, nodelay: bool) -> Result<Self, Error>

Object Safety§

This trait is not object safe.

Implementors§