fn try_send(&mut self, token: Token) {
        if self.connections[token].is_writable() {
            if let Some(work) = self.queue.pop() {
                trace!("send {:?}", token);
                self.write(token, work);
            } else {
                self.ready.push_front(token);
            }
        } else {
            halt!(
                "internal state error. dispatch to non-writable {:?}",
                self.state(token)
            );
        }
    }
/// try to send the next request using the given token
/// - requeue in front if no work to send
/// - halt: if the connection isn't actually writable
try to send the next request using the given token
requeue in front if no work to send
halt: if the connection isn't actually writable
try to send the next request using the given token requeue in front if no work to send halt : if the connection isn ' t actually writable
fn try_send(&mut self, token: Token) {
        if self.connections[token].is_writable() {
            if let Some(work) = self.queue.pop() {
                trace!("send {:?}", token);
                self.write(token, work);
            } else {
                self.ready.push_front(token);
            }
        } else {
            halt!(
                "internal state error. dispatch to non-writable {:?}",
                self.state(token)
            );
        }
    }
fn try_send ( & mut self , token : Token ) { if self . connections [ token ] . is_writable ( ) { if let Some ( work ) = self . queue . pop ( ) { trace ! ( " " token ) ; self . write ( token , work ) ; } else { self . ready . push_front ( token ) ; } } else { halt ! ( " " self state ( token ) ) ; } }
try to send the next request using the given token
 requeue in front if no work to send
 halt: if the connection isn't actually writable
try to send the next request using the given token requeue in front if no work to send halt : if the connection isn ' t actually writable
&mut self
token
Token
&mut self
token
Token