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

Method clone

block/src/qcow/raw_file.rs:386–393  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

384
385impl Clone for RawFile {
386 fn clone(&self) -> Self {
387 RawFile {
388 file: self.file.try_clone().expect("RawFile cloning failed"),
389 alignment: self.alignment,
390 position: self.position,
391 direct_io: self.direct_io,
392 }
393 }
394}
395
396impl AsRawFd for RawFile {

Callers 3

newMethod · 0.45
parse_qcowFunction · 0.45
fmtMethod · 0.45

Calls 1

try_cloneMethod · 0.45

Tested by

no test coverage detected