Type Alias holochain::core::fixt::HashTypeAnyDht
source · pub type HashTypeAnyDht = AnyDht;
Aliased Type§
enum HashTypeAnyDht {
Entry,
Action,
}
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AnyDht
impl<'de> Deserialize<'de> for AnyDht
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AnyDht, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<AnyDht, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl HashType for AnyDht
impl HashType for AnyDht
source§fn get_prefix(self) -> &'static [u8] ⓘ
fn get_prefix(self) -> &'static [u8] ⓘ
Get the 3-byte prefix for the underlying primitive hash type
source§fn try_from_prefix(prefix: &[u8]) -> Result<AnyDht, HoloHashError>
fn try_from_prefix(prefix: &[u8]) -> Result<AnyDht, HoloHashError>
Given a 3-byte prefix, return the corresponding HashType, or error if mismatched.
Trivial for PrimitiveHashType, but useful for composite types
source§impl Ord for AnyDht
impl Ord for AnyDht
source§impl PartialEq<AnyDht> for AnyDht
impl PartialEq<AnyDht> for AnyDht
source§impl PartialOrd<AnyDht> for AnyDht
impl PartialOrd<AnyDht> for AnyDht
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for AnyDht
impl Serialize for AnyDht
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl TryFrom<SerializedBytes> for AnyDht
impl TryFrom<SerializedBytes> for AnyDht
§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
source§fn try_from(sb: SerializedBytes) -> Result<AnyDht, SerializedBytesError>
fn try_from(sb: SerializedBytes) -> Result<AnyDht, SerializedBytesError>
Performs the conversion.