Struct thrust::reactor::Connection [] [src]

pub struct Connection {
    pub token: Token,
    // some fields omitted
}

Fields

token

Methods

impl Connection

fn new(conn: (TcpStream, SocketAddr), token: Token, chan: Sender<Dispatch>) -> Self

fn reset(&mut self, event_loop: &mut EventLoop<Reactor>)

fn ready(&mut self, event_loop: &mut EventLoop<Reactor>, events: EventSet)

fn read(&mut self) -> ThrustResult<Option<Vec<u8>>>

fn writable(&mut self) -> ThrustResult<()>

fn readable(&mut self) -> ThrustResult<()>

fn reregister(&self, event_loop: &mut EventLoop<Reactor>, token: Token) -> ThrustResult<()>

Trait Implementations

impl Write for Connection

fn write(&mut self, data: &[u8]) -> Result<usize>

fn flush(&mut self) -> Result<()>

1.0.0fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>

1.0.0fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>

1.0.0fn by_ref(&mut self) -> &mut Self