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

Method cache

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

Create a cache operation error # Examples ```rust use http_cache::HttpCacheError; let err = HttpCacheError::cache("Cache entry not found"); ```

(message: S)

Source from the content-addressed store, hash-verified

93 /// let err = HttpCacheError::cache("Cache entry not found");
94 /// ```
95 pub fn cache<S: Into<String>>(message: S) -> Self {
96 Self::Cache(message.into())
97 }
98
99 /// Create an HTTP processing error
100 ///

Callers

nothing calls this directly

Calls 1

CacheClass · 0.50

Tested by

no test coverage detected