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

Method new

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

Create a new streaming error from any error type

(error: E)

Source from the content-addressed store, hash-verified

317impl StreamingError {
318 /// Create a new streaming error from any error type
319 pub fn new<E: Into<BoxError>>(error: E) -> Self {
320 Self { inner: error.into(), kind: StreamingErrorKind::Other }
321 }
322
323 /// Create a streaming error with a specific kind
324 pub fn with_kind<E: Into<BoxError>>(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected