Struct connect::Connection[][src]

pub struct Connection { /* fields omitted */ }

An object of Connection represents an incoming or outgoing connection.

Methods

impl Connection
[src]

Creates a new instance of Connection with given TcpStream and ConnectionMode.

Returns ConnectionHandle for this connection.

Returns an Outgoing connection to given address.

Trait Implementations

impl Evented for Connection
[src]

Register self with the given Poll instance. Read more

Re-register self with the given Poll instance. Read more

Deregister self from the given Poll instance Read more

Auto Trait Implementations

impl Send for Connection

impl Sync for Connection