/// We're a connection, and we have something to do.
We're a connection, and we have something to do.
We ' re a connection and we have something to do .
pub fn ready(&mut self, poll: &mut mio::Poll, ev: &mio::event::Event) {
        // If we're readable: read some TLS. Then
        // see if that yielded new plaintext. Then
        if ev.readiness().is_readable() {
            self.do_tls_read();
            self.try_plain_read();
        }
        if ev.readiness().is_writable() {
            self.do_tls_write();
        }
        if self.closing {
            let _ = self.socket.shutdown(Shutdown::Both);
            self.closed = true;
        } else {
            self.reregister(poll);
        }
    }
pub fn ready ( & mut self , poll : & mut mio :: Poll , ev : & mio :: event :: Event ) { // If we're readable: read some TLS. Then // see if that yielded new plaintext. Then if ev . readiness ( ) . is_readable ( ) { self . do_tls_read ( ) ; self . try_plain_read ( ) ; } if ev . readiness ( ) . is_writable ( ) { self . do_tls_write ( ) ; } if self . closing { let _ = self . socket . shutdown ( Shutdown :: Both ) ; self . closed = true ; } else { self . reregister ( poll ) ; } }
We're a connection, and we have something to do.
We ' re a connection and we have something to do .
&mut self
poll
&mut mio::Poll
ev
&mio::event::Event