Skip to main content

inspect

Function inspect 

Source
pub fn inspect(patch: &[u8]) -> Result<Option<PatchHeader>, PatchError>
Expand description

Read a patch’s header without applying it.

Useful for checking a stored patch against a base before paying to load either, and for telemetry over a patch store.

§Errors

See PatchError variants.