pub async fn connect<T: ToSocketAddrs>(address: T) -> Result<Self, std::io::Error> {
        let socket = TcpStream::connect(address).await?;
        let client = Client { socket };
        Ok(client)
    }
/// Connects to the Plasma Stream server at the specified address.
Connects to the Plasma Stream server at the specified address.
Connects to the Plasma Stream server at the specified address .
pub async fn connect<T: ToSocketAddrs>(address: T) -> Result<Self, std::io::Error> {
        let socket = TcpStream::connect(address).await?;
        let client = Client { socket };
        Ok(client)
    }
pub async fn connect < T : ToSocketAddrs > ( address : T ) -> Result < Self , std :: io :: Error > { let socket = TcpStream :: connect ( address ) . await ? ; let client = Client { socket } ; Ok ( client ) }
Connects to the Plasma Stream server at the specified address.
Connects to the Plasma Stream server at the specified address .
address
T
address
T