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

Method clone

block/src/vhdx/mod.rs:218–230  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

216
217impl Clone for Vhdx {
218 fn clone(&self) -> Self {
219 Vhdx {
220 file: self.file.try_clone().unwrap(),
221 vhdx_header: self.vhdx_header.clone(),
222 region_entries: self.region_entries.clone(),
223 bat_entry: self.bat_entry,
224 mdr_entry: self.mdr_entry,
225 disk_spec: self.disk_spec.clone(),
226 bat_entries: self.bat_entries.clone(),
227 current_offset: self.current_offset,
228 first_write: self.first_write,
229 }
230 }
231}
232
233impl AsRawFd for Vhdx {

Callers 7

try_cloneMethod · 0.45
newMethod · 0.45
try_cloneMethod · 0.45
create_async_ioMethod · 0.45

Calls 1

try_cloneMethod · 0.45