Skip to main content

capture_binary_identity

Function capture_binary_identity 

Source
pub fn capture_binary_identity() -> Result<DeployedBinaryIdentity, BinaryIdentityCaptureError>
Expand description

Capture the running server executable’s identity for a deployment record.

§Errors

Returns BinaryIdentityCaptureError when the operating system cannot name this executable or its bytes cannot be read. Neither is defaulted: a record carrying an invented hash would report every future upgrade as a match.