MCPcopy Create free account
hub / github.com/06chaynes/http-cache / with_kind

Method with_kind

http-cache/src/error.rs:324–329  ·  view source on GitHub ↗

Create a streaming error with a specific kind

(
        error: E,
        kind: StreamingErrorKind,
    )

Source from the content-addressed store, hash-verified

322
323 /// Create a streaming error with a specific kind
324 pub fn with_kind<E: Into<BoxError>>(
325 error: E,
326 kind: StreamingErrorKind,
327 ) -> Self {
328 Self { inner: error.into(), kind }
329 }
330
331 /// Create an I/O error
332 pub fn io<E: Into<BoxError>>(error: E) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected