pub struct DHTConfig {
pub replication_factor: usize,
pub bucket_size: usize,
pub alpha: usize,
pub record_ttl: Duration,
pub bucket_refresh_interval: Duration,
pub republish_interval: Duration,
pub max_distance: u8,
}Expand description
DHT configuration parameters
Fields§
§replication_factor: usizeReplication parameter (k) - number of nodes to store each record
bucket_size: usizeMaximum nodes per k-bucket
alpha: usizeConcurrency parameter for parallel lookups
record_ttl: DurationRecord expiration time
bucket_refresh_interval: DurationRefresh interval for buckets
republish_interval: DurationRepublish interval for stored records
max_distance: u8Maximum distance for considering nodes “close”
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DHTConfig
impl RefUnwindSafe for DHTConfig
impl Send for DHTConfig
impl Sync for DHTConfig
impl Unpin for DHTConfig
impl UnwindSafe for DHTConfig
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