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: usize
Replication parameter (k) - number of nodes to store each record
bucket_size: usize
Maximum nodes per k-bucket
alpha: usize
Concurrency parameter for parallel lookups
record_ttl: Duration
Record expiration time
bucket_refresh_interval: Duration
Refresh interval for buckets
republish_interval: Duration
Republish interval for stored records
max_distance: u8
Maximum 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