pub async fn connect<A>(addr: A) -> Result<KfSocket, KfSocketError>
    where
        A: ToSocketAddrs + Display,
    {
        trace!("trying to connect to server at: {}", addr);
        let tcp_stream = AsyncTcpStream::connect(addr).await?;
        Ok(tcp_stream.into())
    }
/// create socket from establishing connection to server
create socket from establishing connection to server
create socket from establishing connection to server
pub async fn connect<A>(addr: A) -> Result<KfSocket, KfSocketError>
    where
        A: ToSocketAddrs + Display,
    {
        trace!("trying to connect to server at: {}", addr);
        let tcp_stream = AsyncTcpStream::connect(addr).await?;
        Ok(tcp_stream.into())
    }
pub async fn connect < A > ( addr : A ) -> Result < KfSocket , KfSocketError > where A : ToSocketAddrs + Display , { trace ! ( " " addr ) ; let tcp_stream = AsyncTcpStream :: connect ( addr ) . await ? ; Ok ( tcp_stream . into ( ) ) }
create socket from establishing connection to server
create socket from establishing connection to server
addr
A
addr
A