Struct hdi::prelude::RegisterUpdate
source · pub struct RegisterUpdate {
pub update: SignedHashed<Update<EntryRateWeight>>,
pub new_entry: Option<Entry>,
pub original_action: EntryCreationAction,
pub original_entry: Option<Entry>,
}
Expand description
Registers an update from an instance of an Entry
in the DHT.
This is the act of creating a Action::Update
and
publishing it to the DHT.
Note that the Action::Update
stores an new instance
of an Entry
and registers it as an update to the original Entry
.
This operation is only concerned with registering the update.
Fields
update: SignedHashed<Update<EntryRateWeight>>
The signed and hashed Action::Update
that registers the update.
new_entry: Option<Entry>
The new Entry
that is being updated to.
This will be None
when the Entry
being
created is EntryVisibility::Private
.
original_action: EntryCreationAction
The original EntryCreationAction
that created
the original Entry
.
Note that the update points to a specific instance of the
of the original Entry
.
original_entry: Option<Entry>
The original Entry
that is being updated from.
This will be None
when the Entry
being
updated is EntryVisibility::Private
.
Trait Implementations
sourceimpl Clone for RegisterUpdate
impl Clone for RegisterUpdate
sourcefn clone(&self) -> RegisterUpdate
fn clone(&self) -> RegisterUpdate
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more