tower_ready_cache/
error.rs1pub type Error = Box<dyn std::error::Error + Send + Sync>;
5
6pub struct Failed<K>(pub K, pub Error);
9
10impl<K> std::fmt::Debug for Failed<K> {
13 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
14 std::fmt::Debug::fmt(&self.1, f)
15 }
16}
17
18impl<K> std::fmt::Display for Failed<K> {
19 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
20 self.1.fmt(f)
21 }
22}
23
24impl<K> std::error::Error for Failed<K> {
25 fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
26 self.1.source()
27 }
28}