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

Method with_kind

block/src/error.rs:171–174  ·  view source on GitHub ↗

Replace the error classification (builder-style).

(mut self, kind: BlockErrorKind)

Source from the content-addressed store, hash-verified

169
170 /// Replace the error classification (builder-style).
171 pub fn with_kind(mut self, kind: BlockErrorKind) -> Self {
172 self.kind = kind;
173 self
174 }
175
176 /// Shorthand: attach an operation name.
177 pub fn with_op(mut self, op: ErrorOp) -> Self {

Callers 1

newMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected