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

Method client

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

Create a client error # Examples ```rust use http_cache::HttpCacheError; let err = HttpCacheError::client("Network timeout"); ```

(error: E)

Source from the content-addressed store, hash-verified

132 /// let err = HttpCacheError::client("Network timeout");
133 /// ```
134 pub fn client<E: Into<BoxError>>(error: E) -> Self {
135 Self::Client(error.into())
136 }
137
138 /// Create a generic error
139 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected