Type Definition holo_hash::AnyDhtHash

source · []
pub type AnyDhtHash = HoloHash<AnyDht>;
Expand description

The hash of anything referrable in the DHT. This is a composite of either an EntryHash or a HeaderHash

Implementations

Match on the primitive hash type represented by this composite hash type

source

pub fn into_entry_hash(self) -> Option<EntryHash>

If this hash represents an EntryHash, return it, else None

If this hash represents a HeaderHash, return it, else None

Trait Implementations

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.