fn drop(&mut self) {
        // info!("drop the TxPacket reference has buf: {}", !self.iobuf.is_none());
        // TODO: return the buffer back to the pool.
        if !self.iobuf.is_none() {
            let iobuf = self.iobuf.take().unwrap();
            // info!("TxToken::consume n segments:{}", iobuf.segments.len());
            // we can drop the IOBufChain here.
            for s in iobuf.segments {
                self.pool.put_buf(s);
            }
        }
    }
/// gets called when the TxPacket gets dropped in the stack
gets called when the TxPacket gets dropped in the stack
gets called when the TxPacket gets dropped in the stack
fn drop(&mut self) {
        // info!("drop the TxPacket reference has buf: {}", !self.iobuf.is_none());
        // TODO: return the buffer back to the pool.
        if !self.iobuf.is_none() {
            let iobuf = self.iobuf.take().unwrap();
            // info!("TxToken::consume n segments:{}", iobuf.segments.len());
            // we can drop the IOBufChain here.
            for s in iobuf.segments {
                self.pool.put_buf(s);
            }
        }
    }
fn drop ( & mut self ) { // info!("drop the TxPacket reference has buf: {}", !self.iobuf.is_none()); // TODO: return the buffer back to the pool. if ! self . iobuf . is_none ( ) { let iobuf = self . iobuf . take ( ) . unwrap ( ) ; // info!("TxToken::consume n segments:{}", iobuf.segments.len()); // we can drop the IOBufChain here. for s in iobuf . segments { self . pool . put_buf ( s ) ; } } }
gets called when the TxPacket gets dropped in the stack
gets called when the TxPacket gets dropped in the stack
&mut self
&mut self