Enum veilid_core::DHTReportScope
source · pub enum DHTReportScope {
Local = 0,
SyncGet = 1,
SyncSet = 2,
UpdateGet = 3,
UpdateSet = 4,
}
Expand description
DHT Record Report Scope
Variants§
Local = 0
Return only the local copy sequence numbers Useful for seeing what subkeys you have locally and which ones have not been retrieved
SyncGet = 1
Return the local sequence numbers and the network sequence numbers with GetValue fanout parameters Provides an independent view of both the local sequence numbers and the network sequence numbers for nodes that would be reached as if the local copy did not exist locally. Useful for determining if the current local copy should be updated from the network.
SyncSet = 2
Return the local sequence numbers and the network sequence numbers with SetValue fanout parameters Provides an independent view of both the local sequence numbers and the network sequence numbers for nodes that would be reached as if the local copy did not exist locally. Useful for determining if the unchanged local copy should be pushed to the network.
UpdateGet = 3
Return the local sequence numbers and the network sequence numbers with GetValue fanout parameters Provides an view of both the local sequence numbers and the network sequence numbers for nodes that would be reached as if a GetValue operation were being performed, including accepting newer values from the network. Useful for determining which subkeys would change with a GetValue operation
UpdateSet = 4
Return the local sequence numbers and the network sequence numbers with SetValue fanout parameters Provides an view of both the local sequence numbers and the network sequence numbers for nodes that would be reached as if a SetValue operation were being performed, including accepting newer values from the network. This simulates a SetValue with the initial sequence number incremented by 1, like a real SetValue would when updating. Useful for determine which subkeys would change on an SetValue operation
Trait Implementations§
source§impl Clone for DHTReportScope
impl Clone for DHTReportScope
source§fn clone(&self) -> DHTReportScope
fn clone(&self) -> DHTReportScope
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DHTReportScope
impl Debug for DHTReportScope
source§impl Default for DHTReportScope
impl Default for DHTReportScope
source§impl<'de> Deserialize<'de> for DHTReportScope
impl<'de> Deserialize<'de> for DHTReportScope
source§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>,
source§impl Hash for DHTReportScope
impl Hash for DHTReportScope
source§impl JsonSchema for DHTReportScope
impl JsonSchema for DHTReportScope
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl Ord for DHTReportScope
impl Ord for DHTReportScope
source§fn cmp(&self, other: &DHTReportScope) -> Ordering
fn cmp(&self, other: &DHTReportScope) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for DHTReportScope
impl PartialEq for DHTReportScope
source§fn eq(&self, other: &DHTReportScope) -> bool
fn eq(&self, other: &DHTReportScope) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DHTReportScope
impl PartialOrd for DHTReportScope
source§fn partial_cmp(&self, other: &DHTReportScope) -> Option<Ordering>
fn partial_cmp(&self, other: &DHTReportScope) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more