Struct veilid_core::VeilidConfigDHT
source · pub struct VeilidConfigDHT {Show 22 fields
pub max_find_node_count: u32,
pub resolve_node_timeout_ms: u32,
pub resolve_node_count: u32,
pub resolve_node_fanout: u32,
pub get_value_timeout_ms: u32,
pub get_value_count: u32,
pub get_value_fanout: u32,
pub set_value_timeout_ms: u32,
pub set_value_count: u32,
pub set_value_fanout: u32,
pub min_peer_count: u32,
pub min_peer_refresh_time_ms: u32,
pub validate_dial_info_receipt_time_ms: u32,
pub local_subkey_cache_size: u32,
pub local_max_subkey_cache_memory_mb: u32,
pub remote_subkey_cache_size: u32,
pub remote_max_records: u32,
pub remote_max_subkey_cache_memory_mb: u32,
pub remote_max_storage_space_mb: u32,
pub public_watch_limit: u32,
pub member_watch_limit: u32,
pub max_watch_expiration_ms: u32,
}
Expand description
Configure the Distributed Hash Table (DHT)
Fields§
§max_find_node_count: u32
§resolve_node_timeout_ms: u32
§resolve_node_count: u32
§resolve_node_fanout: u32
§get_value_timeout_ms: u32
§get_value_count: u32
§get_value_fanout: u32
§set_value_timeout_ms: u32
§set_value_count: u32
§set_value_fanout: u32
§min_peer_count: u32
§min_peer_refresh_time_ms: u32
§validate_dial_info_receipt_time_ms: u32
§local_subkey_cache_size: u32
§local_max_subkey_cache_memory_mb: u32
§remote_subkey_cache_size: u32
§remote_max_records: u32
§remote_max_subkey_cache_memory_mb: u32
§remote_max_storage_space_mb: u32
§public_watch_limit: u32
§member_watch_limit: u32
§max_watch_expiration_ms: u32
Trait Implementations§
source§impl Clone for VeilidConfigDHT
impl Clone for VeilidConfigDHT
source§fn clone(&self) -> VeilidConfigDHT
fn clone(&self) -> VeilidConfigDHT
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VeilidConfigDHT
impl Debug for VeilidConfigDHT
source§impl Default for VeilidConfigDHT
impl Default for VeilidConfigDHT
source§impl<'de> Deserialize<'de> for VeilidConfigDHT
impl<'de> Deserialize<'de> for VeilidConfigDHT
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for VeilidConfigDHT
impl JsonSchema for VeilidConfigDHT
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for VeilidConfigDHT
impl PartialEq for VeilidConfigDHT
source§fn eq(&self, other: &VeilidConfigDHT) -> bool
fn eq(&self, other: &VeilidConfigDHT) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VeilidConfigDHT
impl Serialize for VeilidConfigDHT
impl Eq for VeilidConfigDHT
impl StructuralPartialEq for VeilidConfigDHT
Auto Trait Implementations§
impl Freeze for VeilidConfigDHT
impl RefUnwindSafe for VeilidConfigDHT
impl Send for VeilidConfigDHT
impl Sync for VeilidConfigDHT
impl Unpin for VeilidConfigDHT
impl UnwindSafe for VeilidConfigDHT
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.