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

Method with_path

block/src/error.rs:183–186  ·  view source on GitHub ↗

Shorthand: attach a file path.

(mut self, path: impl Into<PathBuf>)

Source from the content-addressed store, hash-verified

181
182 /// Shorthand: attach a file path.
183 pub fn with_path(mut self, path: impl Into<PathBuf>) -> Self {
184 self.ctx.get_or_insert_with(ErrorContext::default).path = Some(path.into());
185 self
186 }
187
188 /// Shorthand: attach a byte offset.
189 pub fn with_offset(mut self, offset: u64) -> Self {

Callers 5

open_disk_imageFunction · 0.80
open_diskFunction · 0.80
open_vhdxFunction · 0.80
open_fixed_vhdFunction · 0.80
open_qcow2Function · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected