Type Definition holo_hash::AnyDhtHash
source · [−]Expand description
The hash of anything referrable in the DHT. This is a composite of either an EntryHash or a ActionHash
Implementations
sourceimpl AnyDhtHash
impl AnyDhtHash
sourcepub fn into_primitive(self) -> AnyDhtHashPrimitive
pub fn into_primitive(self) -> AnyDhtHashPrimitive
Match on the primitive hash type represented by this composite hash type
sourcepub fn into_entry_hash(self) -> Option<EntryHash>
pub fn into_entry_hash(self) -> Option<EntryHash>
If this hash represents an EntryHash, return it, else None
sourcepub fn into_action_hash(self) -> Option<ActionHash>
pub fn into_action_hash(self) -> Option<ActionHash>
If this hash represents a ActionHash, return it, else None
Trait Implementations
sourceimpl From<HoloHash<Action>> for AnyDhtHash
impl From<HoloHash<Action>> for AnyDhtHash
sourcefn from(hash: ActionHash) -> Self
fn from(hash: ActionHash) -> Self
Converts to this type from the input type.
sourceimpl From<HoloHash<Agent>> for AnyDhtHash
impl From<HoloHash<Agent>> for AnyDhtHash
sourcefn from(hash: AgentPubKey) -> Self
fn from(hash: AgentPubKey) -> Self
Converts to this type from the input type.
sourceimpl From<HoloHash<AnyLinkable>> for AnyDhtHash
impl From<HoloHash<AnyLinkable>> for AnyDhtHash
sourcefn from(hash: AnyLinkableHash) -> Self
fn from(hash: AnyLinkableHash) -> Self
Converts to this type from the input type.