Enum holochain_types::dht_op::DhtOpLight
source · [−]pub enum DhtOpLight {
StoreElement(HeaderHash, Option<EntryHash>, AnyDhtHash),
StoreEntry(HeaderHash, EntryHash, AnyDhtHash),
RegisterAgentActivity(HeaderHash, AnyDhtHash),
RegisterUpdatedContent(HeaderHash, EntryHash, AnyDhtHash),
RegisterUpdatedElement(HeaderHash, EntryHash, AnyDhtHash),
RegisterDeletedBy(HeaderHash, AnyDhtHash),
RegisterDeletedEntryHeader(HeaderHash, AnyDhtHash),
RegisterAddLink(HeaderHash, AnyDhtHash),
RegisterRemoveLink(HeaderHash, AnyDhtHash),
}
Expand description
A type for storing in databases that don’t need the actual data. Everything is a hash of the type except the signatures.
Variants
StoreElement(HeaderHash, Option<EntryHash>, AnyDhtHash)
StoreEntry(HeaderHash, EntryHash, AnyDhtHash)
RegisterAgentActivity(HeaderHash, AnyDhtHash)
RegisterUpdatedContent(HeaderHash, EntryHash, AnyDhtHash)
RegisterUpdatedElement(HeaderHash, EntryHash, AnyDhtHash)
RegisterDeletedBy(HeaderHash, AnyDhtHash)
RegisterDeletedEntryHeader(HeaderHash, AnyDhtHash)
RegisterAddLink(HeaderHash, AnyDhtHash)
RegisterRemoveLink(HeaderHash, AnyDhtHash)
Implementations
Get the dht basis for where to send this op
Get the header hash from this op
pub fn from_type(
op_type: DhtOpType,
header_hash: HeaderHash,
header: &Header
) -> DhtOpResult<Self>
pub fn from_type(
op_type: DhtOpType,
header_hash: HeaderHash,
header: &Header
) -> DhtOpResult<Self>
From a type with the hashes.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for DhtOpLight
impl Send for DhtOpLight
impl Sync for DhtOpLight
impl Unpin for DhtOpLight
impl UnwindSafe for DhtOpLight
Blanket Implementations
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
TODO: once 1.33.0 is the minimum supported compiler version, remove Any::type_id_compat and use StdAny::type_id instead. https://github.com/rust-lang/rust/issues/27745 Read more
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more