pub struct VeilidConfigDHT {Show 25 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 consensus_width: 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,
pub public_transaction_limit: u32,
pub member_transaction_limit: u32,
}Expand description
Configure the Distributed Hash Table (DHT). Defaults should be used here unless you are absolutely sure you know what you’re doing. If you change the count/fanout/timeout parameters, you may render your node inoperable for correct DHT operations.
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§consensus_width: 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§public_transaction_limit: u32§member_transaction_limit: u32Trait Implementations§
Source§impl Clone for VeilidConfigDHT
impl Clone for VeilidConfigDHT
Source§fn clone(&self) -> VeilidConfigDHT
fn clone(&self) -> VeilidConfigDHT
Returns a duplicate 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_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(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for VeilidConfigDHT
impl PartialEq for VeilidConfigDHT
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more