Function hdk_crud::resolve_dependency[][src]

pub fn resolve_dependency<'a, O>(
    hash: AnyDhtHash
) -> ExternResult<Result<ResolvedDependency<O>, ValidateCallbackResult>> where
    O: TryFrom<SerializedBytes, Error = SerializedBytesError>, 
Expand description

During validation, take any hash that might be in the DHT and try to find it, and deserialize it into the inner entry. This is useful if we need one thing to exist in the DHT before we are to allow some other thing in. Notice that it has nested result types, which simplifies things for the caller of this function.