pub struct VeilidConfigInternalDHT {Show 19 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 max_watch_expiration_ms: u32,
pub public_watch_limit: u32,
pub member_watch_limit: u32,
pub public_transaction_limit: u32,
pub member_transaction_limit: u32,
}Expand description
Internal “footgun” DHT configuration. See VeilidConfigInternal. Changing the count/fanout/timeout parameters may render your node inoperable for correct DHT operations.
Fields§
§max_find_node_count: u32Maximum number of nodes returned by a FindNode query.
resolve_node_timeout_ms: u32Timeout for resolving a node, in milliseconds.
resolve_node_count: u32Number of nodes sought when resolving a node.
resolve_node_fanout: u32Parallel fanout width when resolving a node.
get_value_timeout_ms: u32Timeout for a GetValue operation, in milliseconds.
get_value_count: u32Number of matching values sought for GetValue consensus.
get_value_fanout: u32Parallel fanout width for GetValue.
set_value_timeout_ms: u32Timeout for a SetValue operation, in milliseconds.
set_value_count: u32Number of nodes that must accept a SetValue for consensus.
set_value_fanout: u32Parallel fanout width for SetValue.
consensus_width: u32Maximum number of nodes considered ‘close to a record key’ for storing a record.
min_peer_count: u32Minimum number of peers to keep in the routing table.
min_peer_refresh_time_ms: u32Minimum interval between peer-refresh rounds, in milliseconds.
validate_dial_info_receipt_time_ms: u32Time allowed to receive a dial-info validation receipt, in milliseconds.
max_watch_expiration_ms: u32Maximum lifetime of a DHT watch, in milliseconds.
public_watch_limit: u32Maximum concurrent watches by anonymous watchers (signer not a schema member).
member_watch_limit: u32Reserved watch slots for watchers whose signer is a schema member of the record.
public_transaction_limit: u32Maximum concurrent transactions by anonymous signers (not a schema member).
member_transaction_limit: u32Reserved transaction slots for signers who are schema members of the record.
Trait Implementations§
Source§impl Clone for VeilidConfigInternalDHT
impl Clone for VeilidConfigInternalDHT
Source§fn clone(&self) -> VeilidConfigInternalDHT
fn clone(&self) -> VeilidConfigInternalDHT
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VeilidConfigInternalDHT
impl Debug for VeilidConfigInternalDHT
Source§impl Default for VeilidConfigInternalDHT
impl Default for VeilidConfigInternalDHT
Source§impl<'de> Deserialize<'de> for VeilidConfigInternalDHT
impl<'de> Deserialize<'de> for VeilidConfigInternalDHT
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>,
impl Eq for VeilidConfigInternalDHT
Source§impl PartialEq for VeilidConfigInternalDHT
impl PartialEq for VeilidConfigInternalDHT
Source§impl Serialize for VeilidConfigInternalDHT
impl Serialize for VeilidConfigInternalDHT
impl StructuralPartialEq for VeilidConfigInternalDHT
Auto Trait Implementations§
impl Freeze for VeilidConfigInternalDHT
impl RefUnwindSafe for VeilidConfigInternalDHT
impl Send for VeilidConfigInternalDHT
impl Sync for VeilidConfigInternalDHT
impl Unpin for VeilidConfigInternalDHT
impl UnsafeUnpin for VeilidConfigInternalDHT
impl UnwindSafe for VeilidConfigInternalDHT
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
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>
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>
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