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

Method other

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

Create a generic error # Examples ```rust use http_cache::HttpCacheError; let err = HttpCacheError::other("Unexpected error occurred"); ```

(error: E)

Source from the content-addressed store, hash-verified

145 /// let err = HttpCacheError::other("Unexpected error occurred");
146 /// ```
147 pub fn other<E: Into<BoxError>>(error: E) -> Self {
148 Self::Other(error.into())
149 }
150
151 /// Returns true if this error is related to cache operations
152 pub fn is_cache_error(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected