MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / send_pkt

Method send_pkt

virtio-devices/src/vsock/mod.rs:249–257  ·  view source on GitHub ↗
(&mut self, _pkt: &VsockPacket)

Source from the content-addressed store, hash-verified

247 }
248 }
249 fn send_pkt(&mut self, _pkt: &VsockPacket) -> Result<()> {
250 match self.tx_err.take() {
251 None => {
252 self.tx_ok_cnt += 1;
253 Ok(())
254 }
255 Some(e) => Err(e),
256 }
257 }
258 fn has_pending_rx(&self) -> bool {
259 self.pending_rx
260 }

Callers 1

process_txMethod · 0.45

Calls 1

takeMethod · 0.80

Tested by

no test coverage detected