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

Method write

vmm/src/migration_transport.rs:122–127  ·  view source on GitHub ↗
(&mut self, buf: &[u8])

Source from the content-addressed store, hash-verified

120
121impl Write for SocketStream {
122 fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
123 match self {
124 SocketStream::Unix(stream) => stream.write(buf),
125 SocketStream::Tcp(stream) => stream.write(buf),
126 }
127 }
128
129 fn flush(&mut self) -> io::Result<()> {
130 match self {

Callers 2

accept_connectionsMethod · 0.45
cleanupMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected