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

Method with_op

block/src/error.rs:177–180  ·  view source on GitHub ↗

Shorthand: attach an operation name.

(mut self, op: ErrorOp)

Source from the content-addressed store, hash-verified

175
176 /// Shorthand: attach an operation name.
177 pub fn with_op(mut self, op: ErrorOp) -> Self {
178 self.ctx.get_or_insert_with(ErrorContext::default).op = Some(op);
179 self
180 }
181
182 /// Shorthand: attach a file path.
183 pub fn with_path(mut self, path: impl Into<PathBuf>) -> Self {

Callers 10

newMethod · 0.80
resizeMethod · 0.80
create_async_ioMethod · 0.80
newMethod · 0.80
resizeMethod · 0.80
open_disk_imageFunction · 0.80
detect_image_typeFunction · 0.80
newMethod · 0.80
resizeMethod · 0.80
shared_backing_fromFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected