Struct net_utils::net::conn::Connection [] [src]

pub struct Connection {
    pub reader: BufReader<NetStream>,
    pub writer: BufWriter<NetStream>,
    // some fields omitted
}

A Connection object. Make sure you syncronize if uses in multiple threads

Fields

BufReader for NetStream (TCP/SSL)

BufWriter for NetStream (TCP/SSL)

Methods

impl Connection
[src]

Implementation for Connectio

connection unique id Creates a TCP connection to the specified server.

Creates a TCP/SSL connection to the specified server. If already connected, it will drop and reconnect

Get the connection id

Is Valid connection