Load an immutable identity-bound value. Custom stores keep conservative canonical hash verification unless they provide a checked encoded reader.
(
&self,
hash: &Hash,
)
| 108 | /// Load an immutable identity-bound value. Custom stores keep conservative |
| 109 | /// canonical hash verification unless they provide a checked encoded reader. |
| 110 | fn get_verified_change( |
| 111 | &self, |
| 112 | hash: &Hash, |
| 113 | ) -> Result<super::VerifiedChange, super::VerifiedLoadError<Self::Error>> { |
| 114 | let change = self |
| 115 | .get_change(hash) |
| 116 | .map_err(super::VerifiedLoadError::Store)?; |
| 117 | let verified = super::VerifiedChange::from_change(change)?; |
| 118 | verified.check_hash(hash)?; |
| 119 | Ok(verified) |
| 120 | } |
| 121 | |
| 122 | /// Revalidate a cache hit against current backing data. The default reloads |
| 123 | /// and verifies; stores must not trust a pathname, mtime or a prior receipt. |
no test coverage detected