Struct nsq::nsq_conn::NsqConn [] [src]

pub struct NsqConn {
    pub socket: TcpStream,
    pub event_loop: Core,
}

NsqConn represents a connection to an nsqd instance with additional metadata handling.

Fields

The TCP connection to nsqd.

The event loop created from tokio.

Methods

impl NsqConn
[src]

Create a new connection to an nsqd instance.

Trait Implementations

impl Debug for NsqConn
[src]

Formats the value using the given formatter.