pub struct ServiceDiscoveryConfig {
pub auto_populate_fib: bool,
pub auto_populate_scope: DiscoveryScope,
pub auto_fib_cost: u32,
pub auto_fib_ttl_multiplier: f32,
pub auto_populate_prefix_filter: Vec<Name>,
pub max_records_per_scope: usize,
pub max_registrations_per_producer: u32,
pub max_registrations_window: Duration,
pub relay_records: bool,
pub validation: ServiceValidationPolicy,
}Expand description
Configuration for the service-discovery layer (/ndn/local/sd/).
Fields§
§auto_populate_fib: boolAutomatically add FIB entries when service records arrive.
auto_populate_scope: DiscoveryScopeRestrict auto-population to this scope.
auto_fib_cost: u32Route cost for auto-populated FIB entries (should exceed manual routes).
auto_fib_ttl_multiplier: f32Auto-populated entries expire after freshness_period × multiplier.
auto_populate_prefix_filter: Vec<Name>Only auto-populate for these prefixes (empty = accept any).
max_records_per_scope: usizeMaximum service records per scope prefix.
max_registrations_per_producer: u32Max registrations per producer per time window (rate limiting).
max_registrations_window: DurationTime window for the per-producer rate limit.
relay_records: boolWhether to relay service records received from peers.
validation: ServiceValidationPolicyValidation policy for incoming service records.
Trait Implementations§
Source§impl Clone for ServiceDiscoveryConfig
impl Clone for ServiceDiscoveryConfig
Source§fn clone(&self) -> ServiceDiscoveryConfig
fn clone(&self) -> ServiceDiscoveryConfig
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 ServiceDiscoveryConfig
impl Debug for ServiceDiscoveryConfig
Auto Trait Implementations§
impl Freeze for ServiceDiscoveryConfig
impl RefUnwindSafe for ServiceDiscoveryConfig
impl Send for ServiceDiscoveryConfig
impl Sync for ServiceDiscoveryConfig
impl Unpin for ServiceDiscoveryConfig
impl UnwindSafe for ServiceDiscoveryConfig
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